/* * call-seq: * num.truncate => integer * * Returns <i>num</i> truncated to an integer. <code>Numeric</code> * implements this by converting its value to a float and invoking * <code>Float#truncate</code>. */ static VALUE num_truncate(num) VALUE num; { return flo_truncate(rb_Float(num)); }