method

round

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

Rounds num to a given precision in decimal digits (default 0 digits). Precision may be negative. Returns a floating point number when ndigits is more than zero. Numeric implements this by converting itself to a Float and invoking Float#round.