note 58629 rejected from function.number-format by betz

From: Date: Sat, 12 Nov 2005 12:07:50 +0000
Subject: note 58629 rejected from function.number-format by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98475@lists.php.net to get a copy of this message
Note Submitter: simon dot bethke at gmail dot com ---- $newvalue = substr(($value + 0.001), 0, -1); what about this line for formating prices? 1 becomes to 1.00 1.2 becomes to 1.20 1.23 becomes to 1.23 with only one line. (or is there ne usual function built in php for doing this?)

« previous php.notes (#98475) next »