Skip to content
instance method

Float#to_f

() -> ::Float
to_f → self

Returns self (which is already a Float).

See also #round #to_i #rationalize #to_int also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0