Results 1 to 4 of 4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Bunny's Avatar woof.

    Join Date
    Mar 2014
    Country
    Posts
    5,302
    Thanked
    2,875
    Thanks
    1,247
    last time i checked, the $ operator can only be applied to strings..?
    try to surround your variable in " 's, like this
    Code:
    Console.WriteLine($"{wormsLength:F2}");
    Last edited by Bunny; 07-24-2017 at 06:00 PM.

  2. The following 2 users say thank you to Bunny for this useful post:

    Canpai (07-24-2017), GeorgeGFX (07-24-2017)

  3. #2
    GeorgeGFX's Avatar secret.club

    Join Date
    Nov 2010
    Country
    Posts
    15,462
    Thanked
    2,333
    Thanks
    5,080
    Originally Posted by Bunny View Post
    last time i checked, the $ operator can only be applied to strings..?
    try to surround your variable in " 's, like this
    Code:
    Console.WriteLine($"{wormsLength:F2}");
    Ow yeah I forgot them quotes lol, my head was so messed up from trying to fix that stupid error with the compiler I messed up my syntax, thanks.

    >>> Credits to Sikk408 @ DevaintArt <<<

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)