Click to See Complete Forum and Search --> : convert 1.333224E-3 to 0.00333224 is't possible ?


regis
September 5th, 2001, 03:09 PM
I try with

Private Sub Command2_Click()
Dim dNum As Double
Dim sNum As String

sNum = "1.333224E-3"
dNum = sNum
sNum = dNum

MsgBox dNum

End Sub

But is not GOOD !
Somebody can help me?

Thanks
Redg

Markus W.
September 6th, 2001, 02:39 AM
I have tried your sample and got 0.001333224 for sNum and for MsgBox dNum.
But maybe I don't understand your problem? ;-)

Cimperiali
September 6th, 2001, 02:47 AM
Kdev answered this: have a look at his answer at this:
http://codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vb&Number=57985&page=&view=&sb=&category=

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.

The Rater