Hi, I don't face this problem. When I follow the same code in my machine, I get proper result for 4.9 x 5.9 = 28.91 3.9 x 3.9 = 15.21 I use Ruby 1.8.7. What version are you using? Cheers, Vimal -- Posted via http://www.ruby-forum.com/.