note 98149 modified in function.floor by thiago
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Another quick way to round down to the nearest 100 (including 0):
<?php
function floor100($num) {
return (floor($num / 100) * 100);
}
?>
--was--
Another quick way to round down to the nearest 100 (including 0):
function floor100($num) {
return (floor($num / 100) * 100);
}
http://php.net/manual/en/function.floor.php