Format big double with .ToString("f")

51 Views Asked by At

I am stucked with this, if you can help me I'd be thankfull I have a problem converting a big double to string with ToString("f")

In my code, I have the element

double test = Convert.ToDouble(2023092619393694.000)

in the spy the value is good
if I use test.ToString("f3") the value return is "2023092619393690.000" (the 4 in end is missing)

to reproduce

Convert.ToDouble(2023092619393694.000).ToString( "F3",System.Globalization.CultureInfo.InvariantCulture)
0

There are 0 best solutions below