RE: Math Weirdness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux