note 8358 deleted from Floating point numbers by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Fri, 08 Sep 2000 02:05:09 +0000 |
| Subject: | note 8358 deleted from Floating point numbers by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4469@lists.php.net to get a copy of this message | ||
One way to convert a number like 62951.73 to 62900 would be:
floor($var/100)*100;
If you wanted to round up to the nearest hundred:
floor(($var+50)/100)*100;