public Method

Float.to_f

flt.to_f    flt

As flt is already a float, returns self.

Source Code

/*
* call-seq:
*   flt.to_f   => flt
*
* As <code>flt</code> is already a float, returns <i>self</i>.
*/

static VALUE
flo_to_f(num)
   VALUE num;
{
   return num;
}
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.