From: Shashank Date Date: 2002-12-27T15:29:50+09:00 Subject: Re: 1210 / 100 = 12? what? "Tom Sawyer" wrote in message > > puts "#{1210 / 100}" --> 12 > > why isn't the answer 12.1? Try: puts "#{1210.0 / 100}" # => 12.1 ^^ Without this .0 , Ruby takes it as integer division... > i was getting ticked at javascript for producing poor arithmetic results but > this is nuts! Relax ;-)