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
ToString(\"format_provider\")
To get a decimal with 2 numbers after the comma, you could just use:
function nformat(a) { var b = parseInt(parseFloat(a)*100)/100; return b.toFixed(2); }