The Intl.NumberFormat object is a reliable way to format numbers in an i18n-friendly way. It available with Node and all modern browsers. If I want to format number that I expect to contain decimals, ...