note 97765 added to function.money-format

From: Date: Thu, 06 May 2010 21:43:48 +0000
Subject: note 97765 added to function.money-format
Groups: php.notes 
Request: Send a blank email to php-notes+get-169031@lists.php.net to get a copy of this message
The function parameters of php::money_format(...) imply that it might be sensible to use floats for currency calculations. It's not sensible. Re: (sorry, url is chopped onto two lines to allow it into these php notes) http://stackoverflow.com/questions/61872/ use-float-or-decimal-for-accounting-application-dollar-amount the top rated answer says: The answer is easy. Never floats. NEVER ! and gives reasons why. ---- Server IP: 72.55.140.6 Probable Submitter: 199.60.226.253 ---- Manual Page -- http://www.php.net/manual/en/function.money-format.php Edit -- https://master.php.net/note/edit/97765 Del: integrated -- https://master.php.net/note/delete/97765/integrated Del: useless -- https://master.php.net/note/delete/97765/useless Del: bad code -- https://master.php.net/note/delete/97765/bad+code Del: spam -- https://master.php.net/note/delete/97765/spam Del: non-english -- https://master.php.net/note/delete/97765/non-english Del: in docs -- https://master.php.net/note/delete/97765/in+docs Del: other reasons-- https://master.php.net/note/delete/97765 Reject -- https://master.php.net/note/reject/97765 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169031) next »