From: "raj g." Date: 2012-09-18T23:23:36+09:00 Subject: Re: FloatDomainError while rounding Yes I have printed @den1 and @den2 but both of them are not same. even than I face the same problem when I tried to round @answer. If I print @answer without rounding I am not getting the error and getting a Number with long floating point Which is not required for me. Raj -- Posted via http://www.ruby-forum.com/.