News for hackers. Stuff that matters.
Re:Understanding the Odin Programming Language by haspok on Wednesday December 11, 2024 @10:42AM (#42388867)
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".

There are no comments on this comment yet.