On 18.09.2012 15:23, raj g. wrote:
> 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

In that case @num must be Infinity (or -Infinity). Possibly @a or @b 
are 0 and so the logarithms you are calling earlier generate -Infinity. 
Either way, as Jesus says the simplest thing is to just print out all 
the intermediate variables until you see what's wrong.

-- 
Alex Gutteridge