Topic: 5/10 = 0? Data type questions
If I open up irb (or the rails script/console) and type
I get 0. It seems like I should get .5
If I use to_f on the Fixnum objects (to make them floats) I get .5 as expected
irb(main):002:0> 5.to_f / 10.to_f
Maybe I'm just used to PHP assuming what certain things should be (integers, strings, floats etc.) but do I have to convert every Fixnum to a float if I want to preform some division?