Re: [PHP] currency rounding issues

2002-06-05 Thread Miguel Cruz

On Thu, 6 Jun 2002, 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?

It would help if you'd provide an example including the numbers you're 
adding, the result you get, and the desired result.

Nevertheless, check out:

  ceil()
  floor()
  number_format()

I'm sure you'll find something good in there.

miguel


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




[PHP] currency rounding issues

2002-06-05 Thread Paul Berg

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?

Thanks in advance...
Paul



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