When you create a custom currency field and define the number of decimal places (e.g., 2), Salesforce applies rounding only in the user interface. The full precision value is still stored in the database.
User Interface (UI):
If a user enters a value such as $1.234 into a field set to 2 decimal places, the UI will display $1.23 after saving. However, if the user re-edits the field, the full value ($1.234) is shown. This rounding is purely visual.
API Input (e.g., REST API, Apex, Data Loader):
Salesforce does not round values provided through the API. If you insert or update a value like $1.234, it will be stored exactly as entered, regardless of the field’s decimal setting.
This behavior is intentional and ensures backward compatibility with external systems and integrations. If consistent rounding is required, it must be handled explicitly in code or integration logic.
000385689

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.