G
Guest
I have just found a problem in a new Dot Net program I have written. At
it's most basic, if you step into a VB application so that you can run the
command window and type:
Debug.print 1.2-1
The return value is:
0.19999999999999996
However, if you type
Debug.print cdec(1.2)-cdec(1)
the return value is:
0.2 as expected.
Has anyone else come across this, or now of why this occurs?
Any help would be appreciated!
Mike
it's most basic, if you step into a VB application so that you can run the
command window and type:
Debug.print 1.2-1
The return value is:
0.19999999999999996
However, if you type
Debug.print cdec(1.2)-cdec(1)
the return value is:
0.2 as expected.
Has anyone else come across this, or now of why this occurs?
Any help would be appreciated!
Mike