No it was an example of my problem,
VB does the same problem with toomany different numbers...
So i have a big problem with vb mathematic,
There ara toomany variant that i am using in the code,
How can you prefer to guess "if a result is wrong" ?
for example:
dim a ,b,c
a = InputBox("Enter a number")
b = InputBox("Enter another number")
c = a - b ' or c = a * b or c = a/b
' if user gives the 12.45678 for a number and 34.3 fro b number
'you were format the value like c = format(c,"#,0")
' so user smiles, and laughs your code
' user tells that you can not do the operation...
Please some body help
Post by RalphPost by Seyfullah ÃZMÃRLÃcan you calculate 110 - 101.85
is it 8.15000000000001
is there any idea, how to fix this problem?
Yes, format the display of the internal number to reflect the scale or
precision you want shown.
Post by Seyfullah ÃZMÃRLÃdo not prefer to Format the value
Then you are out of luck.
"(Complete) Tutorial to Understand IEEE Floating-Point Errors"
http://support.microsoft.com/kb/42980
"What Every Computer Scientist Should Know About Floating-Point Arithmetic"
http://docs.sun.com/source/806-3568/ncg_goldberg.html
You can also find numerous other sources on the web that explain these kinds
of issues with floating point numbers, and provide suggestions on how to
work around them.
-ralph