[EMAIL PROTECTED] wrote:

> def compareValue(n1, n2):
>     i1 = int(n1)
>     i2 = int(n2)
> 
>     dx = abs(i2 - i1)/min(i2, i1)
>     print dx
>     return dx < 0.05

You could also prepend 

from __future__ import division

Regards,


Björn

-- 
BOFH excuse #237:

Plate voltage too low on demodulator tube

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to