xxxxxxxxxx
float number = 123;
String str_One = number.ToString();
By: Barry Cox
xxxxxxxxxx
float value1 = 3.14159f;
float value2 = 3.0f;
// This prinst as many decimals as the number has
string str = value1.ToString(); // 3.14159
string str2 = value2.ToString(); // 3
// The number after the F decides the amount of decimals
string str3 = value1.ToString("F3"); // 3.141
string str4 = value1.ToString("F5"); // 3.14159