Format numbers in JavaScript similar to C#

xiemails picture xiemails · Jul 1, 2009 · Viewed 374.1k times · Source

Is there a simple way to format numbers in JavaScript, similar to the formatting methods available in C# (or VB.NET) via ToString("format_provider") or String.Format()?

Answer

rahul picture rahul · Jul 1, 2009

Generally

In jQuery