percent
Creates a Percentage based on this number. Calculations using it won't be rounded.
Receiver
Return
The Percentage value of this number.
Creates a Percentage based on this number. Calculations using it will be rounded.
Receiver
Return
The Percentage value of this number.
Parameters
The precision scale to round percentage calculations. The rounding is done using the PreciseRounding policy (i.e. rounds using RoundingMode.HALF_EVEN mode).
Creates a Percentage based on this number. Calculations using it will be rounded.
Receiver
Return
The Percentage value of this number.
Parameters
The Rounding strategy to round the percentage calculations.
Creates a Percentage based on a number returned by the lambda function. Calculations using it won't be rounded.
Receiver
(() -> Number)
Return
A Percentage.
Creates a Percentage based on a number returned by the lambda function. Calculations using it will be rounded.
Receiver
(() -> Number)
Return
A Percentage.
Parameters
The precision scale to round percentage calculations. The rounding is done using the PreciseRounding policy (i.e. rounds using RoundingMode.HALF_EVEN mode).
Creates a Percentage based on a number returned by the lambda function. Calculations using it will be rounded.
Receiver
(() -> Number)
Return
A Percentage.
Parameters
The Rounding strategy to round the percentage calculations.