-@()
public
Unary Minus—Returns the receiver’s value, negated.
Show source
/*
* call-seq:
* -num => numeric
*
* Unary Minus---Returns the receiver's value, negated.
*/
static VALUE
num_uminus(num)
VALUE num;
{
VALUE zero;
zero = INT2FIX(0);
do_coerce(&zero, &num, Qtrue);
return rb_funcall(zero, '-', 1, num);
}