note 86914 added to function.money-format

From: Date: Mon, 10 Nov 2008 10:56:34 +0000
Subject: note 86914 added to function.money-format
Groups: php.notes 
Request: Send a blank email to php-notes+get-146348@lists.php.net to get a copy of this message
Rafael M. Salvioni's winXP implementation of the function works well but fails for negative numbers. There is a fault in the line that reads: <?php case $locale['n_sign_posn'] == 0 || $flags['signal'] == '(': ?> it appears to work if the line is changed to read: <?php case $locale['n_sign_posn'] == 0 || $flags['usesignal'] == '(': ?> ---- Server IP: 92.48.74.199 Probable Submitter: 82.153.174.10 ---- Manual Page -- http://www.php.net/manual/en/function.money-format.php Edit -- https://master.php.net/note/edit/86914 Del: integrated -- https://master.php.net/note/delete/86914/integrated Del: useless -- https://master.php.net/note/delete/86914/useless Del: bad code -- https://master.php.net/note/delete/86914/bad+code Del: spam -- https://master.php.net/note/delete/86914/spam Del: non-english -- https://master.php.net/note/delete/86914/non-english Del: in docs -- https://master.php.net/note/delete/86914/in+docs Del: other reasons-- https://master.php.net/note/delete/86914 Reject -- https://master.php.net/note/reject/86914 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146348) next »