Comment on 0.30000000000000004

PixxlMan@lemmy.world ⁨1⁩ ⁨year⁩ ago

To everyone commenting that you have to convert to binary to represent numbers because computers can’t deal with decimal number representations, this isn’t true! Floating point arithmetic could totally have been implemented with decimal numbers instead of binary. Computers have no problem with decimal numbers - integers exist. Binary based floating point numbers are perhaps a bit simpler, but they’re not a necessity. It just happens to be that floating point standards use binary.

source
Sort:hotnewtop