You need to sign in to do that
Don't have an account?
BoolsEye
Current users currency separators via API
How can I get the current users currency separator characters (thousands/decimals) via API ?
I use the function below to convert a currency to a number. In the last line the "," character (thousand separator) is removed from the number but if the user uses european settings this will be a "." character.
I looked at GetUserInfoResult but could not find any information.
// Juergen
function convertCurrencyToNumber(currValue) {
if(currValue == null || currValue =="") {
currValue = "0";
} else {
currValue = stripCurrencyCode(currValue);
}
return currValue.replace(",", "");
}