My Oracle Support Banner

How To: Remove Decimals (e.g., Cents) From Price Format (Doc ID 2168106.1)

Last updated on JANUARY 01, 2024

Applies to:

Oracle Commerce Cloud Service - Version N/A to N/A
Information in this document applies to any platform.


You want to hide all decimals from prices on your store without affecting other formatting. 

Note that, given the second requirement of "not affecting other formatting", using the "numberformat" field would not work.
For example, in pesos, changing the "numberformat" setting ("numberformat" :"000,000,000.00") to ("numberformat" :"000,000,000") would give the result of (000,00). The final outcome is returned as 000,00 because of auto formatting on the front-end, which appends a decimal value (000.00).



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.