minus-squareMsFlammkuchen@lemmy.blahaj.zonetoProgrammer Humor@lemmy.ml•0.1 + 0.2linkfedilinkarrow-up3·1 year agoFloating point arithmetic Basically, every floating point number represents a range of numbers. Which can lead to small errors like this. It has also to do with trying to represent a decimal number in binary, which works fine for integers but not for rational numbers. linkfedilink
Floating point arithmetic
Basically, every floating point number represents a range of numbers. Which can lead to small errors like this. It has also to do with trying to represent a decimal number in binary, which works fine for integers but not for rational numbers.