Add regex for locales separating decimals with commas, and not periods
@@ -209,7 +209,7 @@ function numberFormat(numberState) {
maximumFractionDigits: 1
});
- return formatter.format(roundDown(numberState)).replace('.0', '');
+ return formatter.format(roundDown(numberState)).replace(/.0|,0/gi, '');
}
function setEventListeners(evt) {