I have a currency field in object. I am assigning value to it in apex
For US users: the currency format is 241,500.00 so when i apply decimalof on this i am getting 241500000.00.
But for Eur users: the currency format is 241.500.00000, so when i apply decimalof on this i am getting Invalid decimal: 241.500.00000
String s = 241.500.00000 or 241,500.00 ;
mar.flowvalue__c = decimal.valueOf(s);
Could you please help me to resolve this issue