Absolute, round, same thing.. ;)  Cheers mate

Ross

-----Original Message-----
From: Mike Flynn [mailto:[EMAIL PROTECTED]]
Sent: 09 April 2002 00:30
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Rounding


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


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


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

Reply via email to