Since SuiteScript doesn't ship with the `Intl` pac...
# suitescript
r
Since SuiteScript doesn't ship with the
Intl
package (that I'm aware of), is there a Suitescript equivalent of the following snippet without reinventing the wheel for compacting numbers?
Copy code
let currencyFormatter = new Intl.NumberFormat('en-US', { style: 'currency', notation: 'compact', currency: 'USD'});
        newSubTotalFormatted = currencyFormatter.format(newSubTotal);
watching following 2
t
N/format/i18n ?
r
thanks, checked that out as well, and they don't have an option for compating. Looks like it tires to replicate some of the
Intl
features, just not all of them
netsuite 2