APIdock
/
Ruby
/
Browse
About
method
to_f
v1_9_2_180
-
Show latest stable
- Class:
Float
to_f
()
public
As flt is already a float, returns
self
.
Show source
static VALUE flo_to_f(VALUE num) { return num; }
Related methods
Instance methods
%
*
**
+
-
-@
/
<
<=
<=>
==
===
>
>=
abs
angle
arg
ceil
coerce
dclone
denominator
divmod
eql?
fdiv
finite?
floor
hash
infinite?
magnitude
modulo
nan?
numerator
phase
power!
quo
rationalize
round
to_d
to_f
to_i
to_int
to_r
to_s
truncate
zero?