floor(*args)
public
Returns the largest integer less than or equal to num.
Numeric implements this by converting an Integer to a Float and
invoking Float#floor.
1.floor
(-1).floor
Show source
static VALUE
num_floor(int argc, VALUE *argv, VALUE num)
{
return flo_floor(argc, argv, rb_Float(num));
}