while coding for a simple code of greater number, I get the output as the 1st number is greater whereas the greater number is the 2nd one
I have a small code of python where python doesn't recognize the greater number. Please help me to explain what is the case.
well if you look at the code then you will realize it's not a big deal but when you think about it in an atomic level you will know that the error is big.
a = 55.0000000000000009
b = 55.0
if (a > b):
print("a is greater")
else:
print("b is greater")
The actual output should be a is greater whereas it is showing the opposite.