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\")
For example:
var flt = '5.99'; var nt = '6'; var rflt = parseFloat(flt); var rnt = parseInt(nt);