Re:Coinbase (YC S12) seeks to bring Bitcoin to the masses
by pygy_ on Friday June 29, 2012 @02:31PM
(#4178240)
Some numbers with a finite representation in base 10, 0.2, for example, don't have a finite representation in base 2.
They are rounded, and doing arithmetic on such numbers leads to compounded rounding errors that you don't want to see when dealing with money.
Another problem is that the mantissa of floating point numbers is limited (52 bits for doubles), which can lead to truncated numbers, another big no no.
They are rounded, and doing arithmetic on such numbers leads to compounded rounding errors that you don't want to see when dealing with money.
Another problem is that the mantissa of floating point numbers is limited (52 bits for doubles), which can lead to truncated numbers, another big no no.