> he question is more similar to "Can you please tell me the number format of <silence>".
Well in PHP, the number for <silence> is 0, so it would stand to reason that the formatted number for <silence> is 0 as well.
Of course, in a more sane language, it would throw an exception, rather than silently returning a wrong value.
What's the numeric representation of the volume of <silence>? 0 dB
Since dB are a log scale, more properly, it would be -Inf dB.
0 dB = atmospheric pressure. -Inf dB = vacuum of space.
So you make up a different question to fit the answer you want? Actually that seems about right for PHP.
Re:We will try to stop fixing bugs in PHP
by felipellrocha on Friday June 22, 2012 @12:32AM
(#4145416)
I think you missed the point here. Steve's analogy asks for a number format, not a volume...
How can the answer to an unfinished question be "0"? 0 is an actual valid answer, when people are asking for number_format(0, 0).
In this case, NULL is definitely more appropriate, because the input is invalid.