When you create a custom currency field and define the number of decimal places (for example, 2 decimal places), Salesforce applies rounding only in the user interface. The full precision value is still stored in the Salesforce database.
If a user enters a value such as $1.234 into a currency field configured for 2 decimal places, the UI displays $1.23 after saving. However, if the user re-edits the field, the full value ($1.234) is shown. This rounding is purely visual and does not affect the stored value.
Salesforce does not round values provided through the API (Application Programming Interface). The Salesforce API refers to the programmatic interfaces — such as the REST API, Apex code, and the Apex Data Loader — that allow external systems to read and write Salesforce data. If you insert or update a value such as $1.234 via the API, it is stored exactly as entered, regardless of the field's decimal setting.
For example, if your integration sends $1.2345 via the REST API to a field configured for 2 decimal places, Salesforce stores $1.2345 — not $1.23. To prevent downstream calculation issues, round the value before sending it to Salesforce.
This behavior is intentional and ensures backward compatibility with external systems and integrations. If consistent rounding is required across both UI and API, it must be handled explicitly in code or integration logic.
The following workarounds can be used to prevent decimal precision issues in your Salesforce org:
Salesforce Help: Product Price Decimal Precision Feature (More Decimals on Price) : https://help.salesforce.com/articleView?id=000325726&language=en_US&type=1&mode=1
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.