I'm trying to divide a number by small floating point number and I got correct result but when I compare this result with another number then I's showing me error
temp_ans=7 / 0.00000000000000000000007
tt=1e+23
print tt,temp_ans,type(tt),type(temp_ans)
if tt==temp_ans:
print "YES1"
if 1e+23==temp_ans:
print "YES2"
if tt==1e+23:
print "YES3"
output:
1e+23 1e+23 <type 'float'> <type 'float'>
YES3
expected output :
1e+23 1e+23 <type 'float'> <type 'float'>
YES1
YES2
YES3