[snip]
for most of what the majority of php/script apps deal with, it's
probably
safe to assume that addition/subtraction will be safe, but i can think
of
numerous examples where this isn't true...
[/snip]

As demonstrated by the example I provided, just checking the difference
(or lack thereof) between two floats brought the issue to light.

I think that this falls into the same category that cleaning input data
does in the fact that it should always be done. While there is a joke
about "skimming" the diffs it just demonstrates that the mathematical
constructs we use based on a digital platform leaves room for
error...and the errors add up really quickly because the platforms are
so darn much quicker than we are.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to