Tom Sawyer <transami / transami.net> writes:

> can someone explain this to me:
>
> 	puts "#{1210 / 100}" --> 12
>
> why isn't the answer 12.1?

Dividing 2 Fixnum objects yields another Fixnum.  Make one of them a
Float to get what you want.

    1210 / 100    
        #=> 12
    (1210 / 100).class
        #=> Fixnum

    (Float(1210) / 100).class
        #=> Float
    Float(1210) / 100
        #=> 12.1