4 ms·
# on Python (3.7.4) 1 == 0.99999999999999994448884876874217297882 # but 1 != 0.99999999999999994448884876874217297881
by juanmacuevas 6y ago
# on Python (3.7.4)
1 == 0.99999999999999994448884876874217297882
# but
1 != 0.99999999999999994448884876874217297881
- maxnoe 6y agoOr any other language using IEEE 754 64 bit floats
- juanmacuevas 6y agoI see... Nice!