Download Number Formatting Library
I’ve updated my JavaScript Number Formatting Library to version 1.3. This release adds the ability to customize how not-a-number (NaN), positive infinity and negative infinity are formatted. All you need to do is set the appropriate constant in Number.prototype
:
Number.prototype.NaN
Number.prototype.posInfinity
Number.prototype.negInfinity
For more documentation, see the original article on JavaScript number formatting.