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
  • 76,472
  • 17
  • 159
  • 346
tmighty
  • 10,734
  • 21
  • 104
  • 218
  • [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.
  • 171,639
  • 30
  • 264
  • 288
  • 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