function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chandra Kant BaghelChandra Kant Baghel 

User Locale impact on Apex.

Hi All
I am facing a weird situation where apex is interpreting same data differently when the user locale is different.
For instance:
When Locale is English(South Africa) apex is parsing <Customfield__c: "12.62"> as 1262.00 

Where as When Locale is English(United States) apex is parsing <Customfield__c: "12.62"> as 12.62
Note: The object is passed from aura component to apex method with the field value as mentioned above and then apex receive it as simply (CustomObject__c obj)

Does anybody have any clue , why possibly is this happening.
It would be great if you can add some supportive documentation also.
AbhinavAbhinav (Salesforce Developers) 
which type of field is this?
 
Chandra Kant BaghelChandra Kant Baghel
Currency type