RE: [PHP-WIN] Rounding

From: Date: Mon, 08 Apr 2002 23:30:29 +0000
Subject: RE: [PHP-WIN] Rounding
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12974@lists.php.net to get a copy of this message
At 09:43 PM 4/8/02 +0100, Ross Fleming wrote:
Multiply by 100, take the absolute value and divide by 100 again
That will round down to 2 decimal places. To round to the nearest 2 decimal places, to what Ross said but instead of getting the absolute value, just round it normally.
Hi all, Is it possible to round to 2 decimal places in PHP without having to push the data into mysql and out again? Cheers, Wayne


« previous php.windows (#12974) next »