public Method

Precision.prec_i

num.prec_i    Integer

Returns an Integer converted from num. It is equivalent to prec(Integer).

Source Code

/*
*  call-seq:
*    num.prec_i  =>  Integer
*
*  Returns an +Integer+ converted from _num_. It is equivalent 
*  to <code>prec(Integer)</code>.
*/

static VALUE
prec_prec_i(x)
   VALUE x;
{
   VALUE klass = rb_cInteger;

   return rb_funcall(x, prc_pr, 1, klass);
}
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.