From: Matthew Huggett Date: 2002-12-27T15:34:55+09:00 Subject: Re: 1210 / 100 = 12? what? Tom Sawyer wrote: >can someone explain this to me: > > puts "#{1210 / 100}" --> 12 > >why isn't the answer 12.1? > >i was getting ticked at javascript for producing poor arithmetic results but >this is nuts! > puts (1210.00/100.00) => 12.1 You started with two integers so you got an integer result.