round(*args)
public
Rounds num to a given precision in decimal digits (default 0
digits). Precision may be negative. Returns
a a floating point number when ndigits is more than one. Numeric implements this by converting itself 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));
}