method

round

v2_6_3 - Show latest stable - Class: Numeric
round(*args)
public

Returns num rounded to the nearest value with a precision of ndigits decimal digits (default: 0).

Numeric implements this by converting its value to a Float and invoking Float#round.