RE: [PHP-WIN] Rounding
| From: | Ross Fleming | Date: | Tue, 09 Apr 2002 08:03:19 +0000 |
| Subject: | RE: [PHP-WIN] Rounding | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12978@lists.php.net to get a copy of this message | ||
Absolute, round, same thing.. ;) Cheers mate
Ross
-----Original Message-----
From: Mike Flynn [mailto:mike@mikeflynn.net]
Sent: 09 April 2002 00:30
To: r.fleming@clara.co.uk; hinchy2000@lineone.net;
php-windows@lists.php.net
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