Time.to_f

Hi everyone!

I’m looking at the following code:

total=total+time_in[“time”].to_f

What exactly is to_f because I cannot find it in the API?

Thanks,

Gabor

to float

http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_c_bignum.html#Bignum.to_f

Sry, if you go to the ruby-doc.org site and click on the programm ruby
reference… press ctrl+f and look for to_f. I clicked on the first link
which was for BigNum… it also converts other data types…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs