News for hackers. Stuff that matters.
Re:Understanding the x86's Decimal Adjust after Addition (DA... by otabdeveloper4 on Wednesday February 01, 2023 @01:31AM (#34607204)
Floats are designed to be computationally and mathematically efficient approximations of the real numbers.

The exist so that trigonometry and logarithms work properly in numerical methods. (A vastly more important problem than getting '0.1' to print pretty on the screen.)

There is no such thing as a 'value' in mathematics, and fixating on 0.1 in particular is pointless.

tldr - everyone should learn the math behind this first.

There are no comments on this comment yet.