Re: currency rounding issues

From: Date: Thu, 06 Jun 2002 01:08:35 +0000
Subject: Re: currency rounding issues
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100834@lists.php.net to get a copy of this message
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

« previous php.general (#100834) next »