Convert double to string without loss of digits after zero
Posted on 2008-10-29
I'm developing in VB.NET, and confronted with this idiotic problem.
I have a double variable i need to convert to a string.
dim x as double = 152.364484546401
When using Cstr() to convert this double to a string, i lose my last ten digits after zero, leaving me with 152,36.
How can i prevent this kind of truncation?