4 ms·
I don't agree with your analogy. The question is more similar to "Can you please tell me the number format of <silence>". How can the answer to an unfinished
by steve8918 14y ago
I don't agree with your analogy. The question is more similar to "Can you please tell me the number format of <silence>".
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.
- phene 14y agoWhat's the numeric representation of the volume of <silence>? 0 dB
- felipellrocha 14y agoI think you missed the point here. Steve's analogy asks for a number format, not a volume...
- MBlume 14y agoDownvoted for cleverness.
- dpark 14y agoSo you make up a different question to fit the answer you want? Actually that seems about right for PHP.
- mturmon 14y agoSince dB are a log scale, more properly, it would be -Inf dB.
- exDM69 14y ago0 dB = atmospheric pressure. -Inf dB = vacuum of space.
- deleted 14y ago[deleted]
- deleted 14y ago[deleted]
- masklinn 14y ago> 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.
- ivix 14y agoOf course, in a more sane language, it would throw an exception, rather than silently returning a wrong value.