note 98149 modified in function.floor by thiago

From: Date: Fri, 28 May 2010 15:02:00 +0000
Subject: note 98149 modified in function.floor by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-169690@lists.php.net to get a copy of this message
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

« previous php.notes (#169690) next »