enable and disable thousand seperators

Demo showing the 2 values for useGrouping. If set to false no thousand separators are used. The default is true.

by David Storey

JavaScript

var largeNum = 100000000.15;

console.log(largeNum + "Enable and disable grouping:");

console.log("Use grouping: " + 
            new Intl.NumberFormat("en-US", {
                useGrouping: true
            }).format(largeNum));

console.log("Disable grouping: " + 
            new Intl.NumberFormat("en-US", {
                useGrouping: false
            }).format(largeNum));