ceil(*args)
public
Returns the smallest possible Integer that is
greater than or equal to num.
Numeric achieves this by converting itself to a
Float then invoking Float#ceil.
1.ceil
1.2.ceil
(-1.2).ceil
(-1.0).ceil
Show source
static VALUE
num_ceil(int argc, VALUE *argv, VALUE num)
{
return flo_ceil(argc, argv, rb_Float(num));
}