B
bojan.pikl
Hi,
I need to find a way to format (round) double to x numbers length.
So .ToString("0.000"); is not good because it has fixed length (in
example 5). I then later parse Double to String, so I can also format
String. But it should not be substring because then the numer is not
correct. (If you just cut the end).
Does anyone know the way to do this?
I need to find a way to format (round) double to x numbers length.
So .ToString("0.000"); is not good because it has fixed length (in
example 5). I then later parse Double to String, so I can also format
String. But it should not be substring because then the numer is not
correct. (If you just cut the end).
Does anyone know the way to do this?