ceil()
public
Show source
/*
* call-seq:
* num.ceil => integer
*
* Returns the smallest <code>Integer</code> greater than or equal to
* <i>num</i>. Class <code>Numeric</code> achieves this by converting
* itself to a <code>Float</code> then invoking
* <code>Float#ceil</code>.
*
* 1.ceil
* 1.2.ceil
* (-1.2).ceil
* (-1.0).ceil
*/
static VALUE
num_ceil(num)
VALUE num;
{
return flo_ceil(rb_Float(num));
}