Welcome to floating point arithmetic.
Use the Decimal datatype to avoid this.
"Scott Gunn" <ne**@thebigspider.co.uk> wrote in message
news:O9****************@TK2MSFTNGP09.phx.gbl...
Hello All,
In VB.Net 2003 why is this the result to a simple maths calculation?
3.53 - 3.52 = 0.00999999046325684
Its not just this one either try this:
1.001 - 0.001 = 0.999999999999989
Coding example:
Dim Calc1 As Double = 3.53F
Dim Calc2 As Double = 3.52F
Msgbox(Calc1 - Calc2)
Why? Please help
TBS