"Tom Sawyer" <transami / transami.net> 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 ;-)