Re: Rounding down?
| From: | David Robley | Date: | Sat, 22 Aug 2009 11:02:37 +0000 |
| Subject: | Re: Rounding down? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297074@lists.php.net to get a copy of this message | ||
Ron Piggott wrote:
> Is there a way to round down to the nearest 50?
>
> Example: Any number between 400 and 449 I would 400 to be displayed; 450
> to 499 would be 450; 500 to 549 would be 500, etc?
>
> The original number of subscribers is from a mySQL query and changes each
> day. I am trying to present a factual statement: "There have been over
> ### subscribers in 2009" type of scenereo.
>
> Ron
Modulus - http://php.net/manual/en/language.operators.arithmetic.php
Cheers
--
David Robley
Oxymoron: Split level.
Today is Prickle-Prickle, the 15th day of Bureaucracy in the YOLD 3175.