Re:PHP Bug: #50696: number_format when passed a 0, returns null
by alttab on Sunday January 10, 2010 @11:03PM
(#1044291)
From the documentation is correct!
Passing a string instead of a float and expecting it to behave a certain way is undocumented. Oh my! Relying on undocumented behavior... a simple duh in the production world.
I'm not adding to the conversation, and I realize this. But simply my $0.02.
From the report: "Each of those changes will have to be coded, tested, written-off, released, tested by the clients since this is tax data and has to be precise for tax planning and retirement planning."
From the documentation: "string number_format ( float $number [, int $decimals ] )"