A Alberto Jul 5, 2004 #1 How can I do to see a float numer in screen with only 2 decimals? Thank you.
P Paul E Collins Jul 5, 2004 #2 Alberto said: How can I do to see a float numer in screen with only 2 decimals? Click to expand... float pi = 3.14159; string piTo2 = pi.ToString("F2"); // "3.14" P.
Alberto said: How can I do to see a float numer in screen with only 2 decimals? Click to expand... float pi = 3.14159; string piTo2 = pi.ToString("F2"); // "3.14" P.