From: [EMAIL PROTECTED]
Operating system: Linux 7.1
PHP version: 4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description: formatting numbers
It would be extremely helpful to be able to do more formatting of numbers
than is currently available.
Specifically, it would be good if number_format would prepend a dollar sign
or allow negative numbers to be shown in brackets rather than with a
negative sign. Both of these are necessary for accounting applications.
My current solution for negative currency looks like this:
if ( $value 0 )
{
$value = (\$.number_format(abs($value),2).);
}
which works but is less than ideal. For one thing, it makes later use of
the number difficult.
--
Edit bug report at: http://bugs.php.net/?id=13011edit=1
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]