ibis.expr.api.NumericValue.round

NumericValue.round(digits=None)

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

Returns:
rounded : type depending on digits argument
digits None or 0

decimal types: decimal other numeric types: bigint

digits nonzero

decimal types: decimal other numeric types: double