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.
Show source
static VALUE
num_round(int argc, VALUE* argv, VALUE num)
{
return flo_round(argc, argv, rb_Float(num));
}