note 8358 added to Floating point numbers

From: Date: Thu, 07 Sep 2000 22:47:35 +0000
Subject: note 8358 added to Floating point numbers
Groups: php.notes 
Request: Send a blank email to php-notes+get-4463@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; http://www.php.net/manual/language.types.double.php

« previous php.notes (#4463) next »