Decimals
As we saw in the floating point article, they're fast but not accurate. This is due to binary division. Programming languages also have a Decimal data type.
How decimals work?
Programming languages fully control the Decimal data type. It first scales the numbers so both operands are at the same level. Then it does the arithmetic. Then it scales the result down.
This is why Decimal is accurate. It's used where accuracy matters, such as a balance. Still, it's slow.