Different countries parse large and small numbers differently, placing the , and . in a different order. It's not worth it to manually assign those numbers for each use-case, but Javascript provides an easy way for that to be displayed for every user correctly by using <Number>.toLocaleString(languageVariable).
We need to apply this to every number (not string!) input received, so that they always display correct for users based on their chosen language.
Special places that require attention:
Different countries parse large and small numbers differently, placing the
,
and.
in a different order. It's not worth it to manually assign those numbers for each use-case, but Javascript provides an easy way for that to be displayed for every user correctly by using<Number>.toLocaleString(languageVariable)
.We need to apply this to every
number
(notstring
!) input received, so that they always display correct for users based on their chosen language. Special places that require attention: