|
-
Feb 10th, 2003, 11:02 AM
#1
Thread Starter
Member
accuracy of numbers question #2
Consider the following small program. Run the program and view the contents of the Immediate Window. Where does 3.5527136788005E-14 come from??
Option Explicit
Dim text1 As String
Dim text2 As String
Private Sub Form_Load()
text1 = "4.9"
text2 = "4.9"
Debug.Print (Val(text1) * 100)
Debug.Print (Int(Val(text2) * 100))
Debug.Print (Val(text1) * 100) - (Int(Val(text2) * 100))
End Sub
Thanks in advance......BluesMatt
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
|