My code:
float st = -195489100.8377F;
Console.WriteLine(" {0,5}: {1}", "F", st.ToString("F", CultureInfo.GetCultureInfo("en-US")));
// output:
// F: -195489100.00
But on Docs.Microsoft is result:
// F: -195489100.84
I tried it also without CultureInfo.GetCultureInfo("en-US") but it is same.
My goal is parse this float to string:
float st = 16777215.255f;
my result is 16777220.00 using above method. But i need exactly
"16777215.255"