|
-
March 2nd, 2006, 12:30 AM
#1
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
-
March 3rd, 2006, 12:21 AM
#2
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
-
March 3rd, 2006, 01:06 AM
#3
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|