On 06/05/2002 09:55 PM, Paul Berg wrote:
> I am putting together an app that involves the adding together of rounded
> numbers and displaying in a currency format.
> The round() function is causing errors of 1 cent to appear after addition.
> Does anyone know of any routines that might assist?
You should not be using floating point math for precise value. Use fixed
point math or arbitrary precision math so you do not loose precision:
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php