This commit is contained in:
2021-03-16 22:47:47 +00:00
parent 59e78baba7
commit 8feae8c4b0
2 changed files with 3 additions and 9 deletions

View File

@@ -298,9 +298,12 @@ export default {
if (!languageName) {
languageName = this.getBrowserLanguages();
}
//This forces 2 digits after the decimal
// return new Intl.NumberFormat(languageName, {
// minimumFractionDigits: 2
// }).format(value);
//this goes with whatever is the local format which for dev testing turned out to be perfect: 1.00 displays as 1 and 1.75 displays as 1.75
//alignment goes out the window but it follows v7 format
return new Intl.NumberFormat(languageName).format(value);
},
///////////////////////////////////////////