Indeed, this is common to all languages/platforms that use IEEE-754 floating-point arithmetic. The decimal module is there for those cases where "close" isn't good enough - like when you want fixed precision because you're dealing with currency figures and there's no such thing as 3 ten-billionths of a cent.
Hacker News


