/
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:
Navigate to CalculationLogic > AGR_ProcessingLib > elements.
Open MathUtils.groovy.
To set the global rounding, adjust the
decimalPlace
value within theround()
method (default =2
). You can also changeroundingMode
(default =HALF_UP
)
You can modify the rounding for individual outputs separately where the libs
.AGR_ProcessingLib
.MathUtils
.round()
method is used.
, multiple selections available,
Related content
How to Round Numeric Value
How to Round Numeric Value
More like this
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
Run Test of a Method Call
Run Test of a Method Call
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