From: Matt Armstrong Date: 2002-12-27T15:24:33+09:00 Subject: Re: 1210 / 100 = 12? what? Tom Sawyer 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