Comment on 0.30000000000000004

<- View Parent
PixxlMan@lemmy.world ⁨1⁩ ⁨year⁩ ago

Wrong. Sounds like you think only fixed point/precision could be implemented in decimal. There’s nothing about floating point that would make it impossible to implement in decimal. In fact, it’s a common form of floating point. See C# “decimal” type docs.

The beginning of the Wikipedia article on floating point also says this: “In practice, most floating-point systems use base two, though base ten (decimal floating point) is also common.” (en.m.wikipedia.org/…/Floating-point_arithmetic) Also check this out: en.m.wikipedia.org/wiki/Decimal_floating_point

Everything in my comment applies to floating point. Not fixed point.

source
Sort:hotnewtop