note 12257 deleted from function.round by jeroen

From: Date: Sat, 01 Sep 2001 12:36:33 +0000
Subject: note 12257 deleted from function.round by jeroen
Groups: php.notes 
Request: Send a blank email to php-notes+get-17490@lists.php.net to get a copy of this message
// This is for compatibility reason, // because PHP3 that Im using // does'nt support the optional argument $precision // of the function round() found in PHP4. // Hope this could help. function rounder ($value , $precision=0) { $round_to = pow (10, $precision); return round ($value * $round_to) / $round_to; }

« previous php.notes (#17490) next »