3 ms·
Some fun formats: new Number(1234567890).toLocaleString('en-US-u-nu-fullwide', {useGrouping:false}); you can replace "fullwide" with "mathbold", "mathdbl"
by est 4y ago
Some fun formats:
new Number(1234567890).toLocaleString('en-US-u-nu-fullwide', {useGrouping:false});
you can replace "fullwide" with "mathbold", "mathdbl", "mathmono", "mathsanb", "mathsans", etc.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#parameters https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...