Show Two Decimals for Calculation Results
Always show two decimals in your calculation results (e.g. 1.00
, 1.50
).
Most often if you need to show two decimals it’s because you’re working with currency; however, this isn’t always the case. In these scenarios, this snippet can help.
Instructions
Install this snippet with our free Custom JavaScript plugin. https://gravitywiz.com/gravity-forms-code-chest/
Follow the inline comments to configure for your form and field.
Code
Filename: gw-show-two-decimals-for-calc-results.js