From: Robert Klemme Date: 2009-09-25T15:00:07+09:00 Subject: Re: Ruby Noob issue Welcome to Ruby, Fred! On 09/25/2009 03:17 AM, Fred Ige wrote: > Satish Talim wrote: >> Fred, (5/9) is integer division. The decimal part is truncated leaving >> you >> with 0. Use (5.0/9) instead. >> Satish > > Thanks! It works now > I cant believe such a small issue throw me off for so long. Well, the good news is that you learned it early the hard way and won't forget it anytime soon. That will help you avoid such errors in more complex code where they are more difficult to spot. :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/