From: Alex Young Date: 2009-10-31T22:31:21+09:00 Subject: Re: Really small numbers in ruby coming as zero!? Mahadev Ittina wrote: > # This is where I am having my problem > K = ((M) / (b*(d**2)*fck)).to_f K = M.to_f / (b*(d**2)*fck) In your code, you're dividing an integer by an integer, so Ruby makes it an integer division. If you make either the numerator or denominator a float, you'll get a float result. -- Alex -- Posted via http://www.ruby-forum.com/.