Decimal.round

Calculates and returns the rounded value. The fixed point position in the return value remains the original.

struct Decimal
pure const
round
(
size_t lastDigitPosition = 0
)

Parameters

lastDigitPosition size_t

The number of decimal places to save. By default, 0.

Meta