note 68050 deleted from function.round by mgdm

From: Date: Thu, 07 May 2009 17:24:43 +0000
Subject: note 68050 deleted from function.round by mgdm
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154324@lists.php.net to get a copy of this message
Note Submitter: Reason: 1 ---- Since everybody here seems to be occupied wanking over their selfmade round() functions, a little note about the actual php-implementation: If you round() a _very_ small number to a reasonable number of decimals, it will retain its sign! IE: round(1.4 - 1.4, 4) returns "-0" instead of just "0"! Dont ask me how to properly get rid of this. Im just gonna cut it off using preg_replace().

« previous php.notes (#154324) next »