Hacker News new | ask | show | jobs
by haspok 556 days ago
You cannot represent an arbitrary or fixed precision decimal number in a floating point format. Or to put it in another way:

"Most decimal fractions cannot be represented exactly as binary fractions." - from the Python tutorial

The word "decimal" does not simply mean "a number that consists of a whole and a fractional part".