Re: Rounding
| From: | Ng Hwee Hwee | Date: | Thu, 08 Apr 2004 02:16:19 +0000 |
| Subject: | Re: Rounding | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33794@lists.php.net to get a copy of this message | ||
whoa! thanks so much! you guys are smart! hahaha..
i just love this list and all the helpful souls out there!
:o)
----- Original Message -----
From: "Larry E. Ullman" <LarryUllman@DMCInsights.Com>
To: "Ng Hwee Hwee" <hhwee@towa.com.sg>
Cc: "DBList" <php-db@lists.php.net>
Sent: Thursday, April 08, 2004 10:06 AM
Subject: Re: [PHP-DB] Rounding
> > 6.11 --> 6.2
> > 6.15 --> 6.2
> > 6.19 --> 6.2
> > 6.20 --> 6.2
> >
> > i know there is a ceil() function but that rounds up to the nearest
> > integer.. i need one decimal place still..
>
> If my math is right, you could multiply the number by ten, take the
> CEILING(), then divide that by 10.
>
> Larry
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>