/
How to Adjust Rounding of Displayed Outputs

How to Adjust Rounding of Displayed Outputs

All places where results are presented to a user are rounded to 2 decimal places by default. You can change this rounding setting globally by following these steps:

  1. Navigate to CalculationLogic > AGR_ProcessingLib > elements.

  2. Open MathUtils.groovy.

  3. To set the global rounding, adjust the decimalPlace value within the round() method (default = 2). You can also change roundingMode(default = HALF_UP)

You can modify the rounding for individual outputs separately where the libs.AGR_ProcessingLib.MathUtils.round() method is used.

Related content

How to Set the Number of Displayed Decimals in User Input
How to Set the Number of Displayed Decimals in User Input
More like this
Why NOT to Use 'float' or 'double' Types in Groovy
Why NOT to Use 'float' or 'double' Types in Groovy
More like this
Is it possible to change precision for Result Price on LPG?
Is it possible to change precision for Result Price on LPG?
More like this
PSP Rounding Rules Module
PSP Rounding Rules Module
More like this