public Method

Float.-@

-float    float

Returns float, negated.

Source Code

/*
* call-seq:
*    -float   => float
*
* Returns float, negated.
*/

static VALUE
flo_uminus(flt)
   VALUE flt;
{
   return rb_float_new(-RFLOAT(flt)->value);
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.