Hello,

On 06/05/2002 09:55 PM, Paul Berg wrote:
> Hi,
> 
> 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:

http://www.php.net/bcadd



-- 

Regards,
Manuel Lemos


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

Reply via email to