This is raging on the 4D (a database application) discussion list right
now, so I thought I'd ask it here:
2.3 + 2.3 + 2.4 is 7.0, but in binary representation, 2.3 and 2.4 are
repeating decimals, and hence to a computer, the result is actually
something like 6.99999999999998 or 7.000000001.
In 4D, this can bite you in the butt if you're not careful to round the
results of a calculation like this. I just tried it with MetaCard, and
got 7.0. Is MetaCard "safe" under all circumstances? Or does anyone know
of a situation where it pays to do the final rounding yourself?
gc
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.