Here is my code:
Print("The gap size is " + gap[0].ToString());
The output is:
1.179999999999
If I try to format like this:
Print("The gap size is " + gap[0].ToString("{0:0.0}"));
The output is:
The gap size is {0:1.2}
What is the correct way to do this?
Thanks, Tim
Comment