note 101430 deleted from function.round by danbrown

From: Date: Thu, 16 Dec 2010 11:13:18 +0000
Subject: note 101430 deleted from function.round by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174974@lists.php.net to get a copy of this message
Note Submitter: zuurbrand [at] gmail [dot] com ---- Ok count() clearly doesn't work. Tested it on Ubuntu Linux. I did print count(19.525); as the expected answer would be 19.53. Well it wasn't. It was 19.52, clearly something is wrong with that. I used MySQL to fix it for me. $resQuery = MySQL_Select("SELECT ROUND(19.525,2) as mynum"); $objFormula = MySQL_Fetch_Object($resQuery); Print($objFormula->mynum); // 19.53 :D Enjoy..

« previous php.notes (#174974) next »