I guess that's because nobody knows beforehand which direction the fuzz should
go - should it go "a little" upwards or "a little" downwards in order to match
Just my two cents.
Matthew Clark wrote:
> Seeing as the mathematically correct way to round numbers is to round down
> to n for n-1<=m<=n.5 and up to n+1 for n.5<m<n+1, I wonder why the PHP
> round() function couldn't include a little 'fuzz' to handle the rounding
> problems we encounter due to floating point representation in the hardware?
> It could even be a configurable option - but it would save writing a
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php