note 2150 deleted from Floating point numbers by jeroen

From: Date: Wed, 23 May 2001 23:14:29 +0000
Subject: note 2150 deleted from Floating point numbers by jeroen
Groups: php.notes 
Request: Send a blank email to php-notes+get-14214@lists.php.net to get a copy of this message
this is the same as the one above, just a little more compact. function sigfig($num, $div) { return (int)($num/$div)*$div; }

« previous php.notes (#14214) next »