note 65996 added to function.round

From: Date: Thu, 11 May 2006 15:51:12 +0000
Subject: note 65996 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-111135@lists.php.net to get a copy of this message
function round is more than just fantastic. Why not to use this one instead of creating your own for rounding UP/DOWN $proc_total1 had a number of values (see 2 examples below) round($proc_total1) //$proc_total1=57.1428571429 echo $proc_total1; //57 round($proc_total1) //$proc_total1=42.8571428571 echo $proc_total1; //43 good luck ---- Server IP: 84.18.202.180 Probable Submitter: 81.5.142.93 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.round.php Edit -- http://master.php.net/note/edit/65996 Del: integrated -- http://master.php.net/note/delete/65996/integrated Del: useless -- http://master.php.net/note/delete/65996/useless Del: bad code -- http://master.php.net/note/delete/65996/bad+code Del: spam -- http://master.php.net/note/delete/65996/spam Del: non-english -- http://master.php.net/note/delete/65996/non-english Del: in docs -- http://master.php.net/note/delete/65996/in+docs Del: other reasons-- http://master.php.net/note/delete/65996 Reject -- http://master.php.net/note/reject/65996 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111135) next »