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
Krishna Kanth NallamilliKrishna Kanth Nallamilli 

Decimals needs to be removed in currency field

Dear Team,

In field data type I select currency. And it should not display any currency with decimals I have mentioned in field type (Currency(14, 0)).
But still I can see decimals (EUR 7,665.00) could some one assist me on this please?

thank you.

Regards,
krishnakanth
Mudasir WaniMudasir Wani
Dear Krishna,

Currency fields are defined as type double.
Fields of type Double contain fractional portions (digits to the right of the decimal place)

Some restrictions may be applied to double values but I wonder how can you apply here 
​scale: Maximum number of digits to the right of the decimal place.
precision: Total number of digits, including those to the left and the right of the decimal place

https://www.salesforce.com/developer/docs/api/Content/primitive_data_types.htm

https://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_currencytype.htm

https://www.salesforce.com/developer/docs/api/Content/field_types.htm#i1435541

Don't forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help