ibis.expr.api.NumericValue.round

NumericValue.round(digits=None)

Round values either to integer or indicated number of decimal places.

Returns

rounded

digits None or 0

decimal types: decimal other numeric types: bigint

digits nonzero

decimal types: decimal other numeric types: double

Return type

type depending on digits argument