Skip to main content

Why is there a very small 1 behind my value when performing a simple math operation in Python? [duplicate]

Why is there a small 1 when I run this on Python?

1.5-0.38-0.38

output

0.7400000000000001

Why is Python not returning me 0.74 as intended?



source https://stackoverflow.com/questions/73900515/why-is-there-a-very-small-1-behind-my-value-when-performing-a-simple-math-operat

Comments