Xaprb

Stay curious!

Archive for the ‘format strings’ tag

JavaScript Number Formatting Library v1.3 released

with 10 comments

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.

Written by Baron Schwartz

July 15th, 2007 at 9:52 am