public Method

Precision.prec_f

num.prec_f    Float

Returns a Float converted from num. It is equivalent to prec(Float).

Source Code

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

static VALUE
prec_prec_f(x)
   VALUE x;
{
   VALUE klass = rb_cFloat;

   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.