End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Numeric#ceil
ceil(digits = 0) → integer or float
numeric.c
View on GitHub ↗
static VALUE
num_ceil(int argc, VALUE *argv, VALUE num)
{
return flo_ceil(argc, argv, rb_Float(num));
}
Returns the smallest number that is greater than or equal to self with a precision of digits decimal digits.
Numeric implements this by converting self to a Float and invoking Float#ceil.