Std.Decimal.round
1 declaration
fn
round: Decimal -> Int -> Std.Decimal.Rounding -> DecimalThis is a callable function.
What it does
Round to a number of fractional digits.
Asking for more digits than the value carries is exact: the value is
rescaled and nothing is decided. Asking for fewer is where the mode acts.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
