How to Add Three Decimals with Gravity Form Currencies
Gravity Forms provides support for a variety of currencies out of the box and allows you to change the currency for your forms on the Gravity Forms settings page.
Most default currencies will be set to two decimal places but what if you need to change this to three decimal places or some other number?
gform_currencies filter! This handy little snippet will allow you to select a currency and change the number of decimals used when working with the specified currency.
In the example above, we are using the Euro (EUR) but you can replace this with any of the supported currencies. For a full list of Gravity Form Currencies please see our article on Gravity Form Currencies.
Using three decimals is commonly used with bulk pricing. This means the more you buy the cheaper the per unit cost. If you’re looking for a simple way to setup bulk pricing, check out our powerful pricing plugin, GP Conditional Pricing