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
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
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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs