News for hackers. Stuff that matters.
Re:PHP Bug: #50696: number_format when passed a 0, returns null by viraptor on Sunday January 10, 2010 @02:08PM (#1043469)
A bit unrelated to the discussion... but will anyone be surprised if they get a couple of cents more (or less) on their retirement?

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 ] )"

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.

Re:PHP Bug: #50696: number_format when passed a 0, returns null by brandon on Monday January 11, 2010 @12:22AM (#1044416)

  But simply my $NULL.
Oops!
Re:PHP Bug: #50696: number_format when passed a 0, returns null by karam on Sunday January 10, 2010 @06:15PM (#1043874)
A couple of cents off individually might not matter. A couple of cents off cumulatively across a few hundred thousand individuals over a few years does matter.