0

I have the double value

3,64171229302883E-02 

I would like to convert it so that the E-02 is gone and zeros are used instead.

How would I do that in VB6, please?

GSerg
  • 73,524
  • 17
  • 153
  • 317
tmighty
  • 9,293
  • 20
  • 90
  • 192
  • [Read this.](http://stackoverflow.com/questions/1603013/easier-way-to-prevent-numbers-from-showing-in-exponent-notation) You should see your answer. – Scott Solmer Oct 16 '13 at 15:47

1 Answers1

1

Assuming its in a string cast to Decimal ("," is locale specific, for me its ".")

?cdec("3.64171229302883E-02")
 0.0364171229302883 
Alex K.
  • 165,803
  • 30
  • 257
  • 277
  • 1
    This answer is actually wrong; it just appears to do what expected because the default rules for converting doubles and decimals to strings differ. The right way is `Format$(3.64171229302883E-02#, "0.##################")` or `FormatNumber(3.64171229302883E-02#, 16)`. – GSerg Oct 16 '13 at 16:21