Re: PHP Rounding Question
| From: | David Harkness | Date: | Fri, 20 May 2011 18:01:45 +0000 |
| Subject: | Re: PHP Rounding Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312983@lists.php.net to get a copy of this message | ||
On Fri, May 20, 2011 at 10:40 AM, Rick Dwyer <rpdwyer@earthlink.net> wrote:
> How do I coerce the result to always round up to the nearest increment 1/4?
>
$x = ceil($x * 4) / 4;
David