public Method

Fixnum.zero?

fix.zero?     true or false

Returns true if fix is zero.

Source Code

/*
*  call-seq:
*     fix.zero?    => true or false
*  
*  Returns <code>true</code> if <i>fix</i> is zero.
*     
*/

static VALUE
fix_zero_p(num)
   VALUE num;
{
   if (FIX2LONG(num) == 0) {
       return Qtrue;
   }
   return Qfalse;
}
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.