|
-
Jun 6th, 2000, 04:27 AM
#1
Thread Starter
Addicted Member
I know my problem is probably due to my variable type but I have tried many thins and am not able to figure it out.
My variable types:
Dim Prime as Single
Dim Percentage as Single
in VB:
Prime = 266.09
Percentage = 0.1
Prime = Prime * Percentage
'Now here... vb puts something like 26.60899945761 in Prime
'We all know that 10% of 266.09 = 26.609
How come I dont get the right answer???
please help me
thank you
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
|