I am currently trying to deal with numbers for both English (en) and German (de) languages. I have a global function which does this and works fine until the number reaches 1000 or more.
function getLocaleString(floatValue) {
var CurrentCulture = $('#CurrentCulture').val();
if (CurrentCulture != "" && CurrentCulture != null) {
return floatValue.toLocaleString(CurrentCulture, { minimumFractionDigits: 2,
maximumFractionDigits: 2 });
}
return floatValue;
}
Is there a way to get this to remove the comma so the figures do not become distorted?