08-21-2025, 03:31 AM
Code: (Select All)
FOR I! = 0 TO 1 STEP .0000001
itot! = itot! + I!
PRINT "I : ", I!, "I Total : ", itot!
NEXT
It takes a few seconds to run but if you analyse the numbers youll see how adding/incrementing any floating point numbers (and this is in almost any language) will never yield absolute results...I had a similar problem years ago and Galleon tried to explain it to me, all i remember is...two floating point variables that are both .5 when added together do not guarantee the result is 1!
Dont know if that helps!
John

