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
ali khan 6ali khan 6 

Number field returns decimal places when updated in Dataloader/DeveloperConsole

Hi - There is a requirement to contatenate a bunch of filed on an object and compare it against contactnation on another object. The issue I am facing is that when Number field is updated via DataLoader (or Developer Console) it has additional 1 decimal place. Is this expected behavior ? 

Value when updated on Edit page of the record (SF UI) => pav.Additional_Applications__c =0
Value when updated via Dataloader => pav.Additional_Applications__c =0.0

Please let me know. 

Thanks,
Ali
Best Answer chosen by ali khan 6
Rupali PophaliyaRupali Pophaliya
The length and decimal places are only enforced when editing data via the standard web UI. Apex and API methods can actually save records with decimal places. http://help.salesforce.com/HTViewSolution?id=000212661

All Answers

Rupali PophaliyaRupali Pophaliya
The length and decimal places are only enforced when editing data via the standard web UI. Apex and API methods can actually save records with decimal places. http://help.salesforce.com/HTViewSolution?id=000212661
This was selected as the best answer
ali khan 6ali khan 6
Hi Rupali - Thanks for the quick response, very helpful. Cheers, Ali