This post originated from an RSS feed registered with Perl Buzz
by Chris Winters.
Original Post: Formatting numbers in Javascript
Feed Title: cwinters.com
Feed URL: http://www.cwinters.com/raw/cwinters_perl.rdf
Feed Description: Chris Winters on Perl, programming and technology
JavaScript Formatting Methods - It always amazes me how mainstream languages (like Java and JavaScript) can totally ignore printf/sprintf, or make the same functionality such a PITA to use that you wind up immplementing a half-assed version of it so you can concisely do what you need.
Anyway, this library seems to work pretty well, even though it's six years old...