CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    42

    Calculator Functions

    hii guys,
    thanks for all the help in My first ever VB based application for a company.
    the project was for the interface between microcontroller and PC , it was not possible without great help from all the codegurus .

    F-E Function availability in Visual Basic
    But still some enhanced features are needed . like the floating point number which i receive is in the format 1.234E-04 , and same is shown on textbox,
    is there any ready function to convert it into 0.0001234 .
    This is Referrred as F-E in Scientific Calculators,

    Secondly why cant we use same MSCOMM object for 2 different Child Forms.
    yogi
    Last edited by yogesh_gothe; March 2nd, 2006 at 04:02 AM. Reason: Title Change

  2. #2
    Join Date
    Jan 2006
    Posts
    42

    Re:Problem solved Partially

    okay guys solved the problem partially
    use FormatNumber function to get the 1.234E-04 to 0.0001234
    but still where can i get the function which does the function of F-E as in scientific calculator.
    yogi

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Float Point E-04 problem

    You need to check for E- or E+, and use the right number of #'s

    Code:
    Option Explicit
    
    Private Sub Form_Load()
      MsgBox Format(15432.234567, "### E+")
    End Sub
    You can use .###, but results are unpredictable.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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