CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Location
    Québec (Canada)
    Posts
    210

    convert 1.333224E-3 to 0.00333224 is't possible ?

    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


  2. #2
    Join Date
    Jun 1999
    Location
    Switzerland
    Posts
    398

    Re: convert 1.333224E-3 to 0.00333224 is't possible ?

    I have tried your sample and got 0.001333224 for sNum and for MsgBox dNum.
    But maybe I don't understand your problem? ;-)

    Leica Geosystems - when it has to be right

  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: convert 1.333224E-3 to 0.00333224 is't possible ?

    Kdev answered this: have a look at his answer at this:
    http://codeguru.com/cgi-bin/bbs/wt/s...&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
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured