It turns out that in our universe 11.025 * 28 = 308.7.
No surprises there.
But although 308.7 / 11.025 gives "28", it seems that 308.7 div 11.025 gives "27". I used "div" in a procedure, and I could not find the calculation error in the flow of (what I call) my logic for the longest time.
Out in the nether world of the precision limit:
Code: Select all
on mouseUp
set the numberFormat to "#.###############"
put 308.7 / 11.025 into t1 --"28"
put 308.7 div 11.025 into t2 --"27"
put t1 - t2
end mouseUp
I am shocked to find it matters at the near-integer level, assuming that is what is tripping up "div". But then why does it not trip up "/"?
You have to be careful when counting using your fingers and toes. Make sure you have approximately ten of each.
Is this a bug in "div"?
Craig