The IEEE 754 floating-point standard even includes decimal- instead of binary-based floating-point types, i.e. which can represent e.g. 0.1 accurately: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;IEEE_floating_point#Basic_and_interchange_formats" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;IEEE_floating_point#Basic_and_...</a>
I think this is what IBM&#x27;s POWER CPUs implement.<p>And there&#x27;s even a proposal to add it to the C++ standard: <a href="http:&#x2F;&#x2F;open-std.org&#x2F;jtc1&#x2F;sc22&#x2F;wg21&#x2F;docs&#x2F;papers&#x2F;2014&#x2F;n3871.html" rel="nofollow">http:&#x2F;&#x2F;open-std.org&#x2F;jtc1&#x2F;sc22&#x2F;wg21&#x2F;docs&#x2F;papers&#x2F;2014&#x2F;n3871.ht...</a>
And the C standard: <a href="http:&#x2F;&#x2F;www.open-std.org&#x2F;JTC1&#x2F;SC22&#x2F;WG14&#x2F;www&#x2F;docs&#x2F;n1312.pdf" rel="nofollow">http:&#x2F;&#x2F;www.open-std.org&#x2F;JTC1&#x2F;SC22&#x2F;WG14&#x2F;www&#x2F;docs&#x2F;n1312.pdf</a>