Given a double value, for example 1.00500000274996E-8, how to convert it into a non-scientific format with the maximum number of digits after the decimal point - in this case, with 8 digits, will this be 1.00500000?
The conversion should not contain zeros, so 2007 will be released as 2007, and 2012.33 and 2012.33.
I tried a lot of combinations using Format, FormatFloat, FloatToStrF, but didn't seem to be able to hit the jackpot. Thanks so much for any help.
Edit: I have to clarify that I'm trying to convert it to a string representation without the Exponent (E) part.
source
share