number.js 190 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 var val = new Number(100.000); console.log(val.toExponential()); console.log(val.toFixed()); console.log(val.toLocaleString()); console.log(val.toPrecision()); console.log(val.toString());