4 ms·
Right, but the price is about 100, not 1. If you had a price of 1.25 then you could represent this as a float as (binary) 1.01. However if you have 117.25 then
by jleahy 7y ago
Right, but the price is about 100, not 1.
If you had a price of 1.25 then you could represent this as a float as (binary) 1.01. However if you have 117.25 then that's (decimal) 1.83203125 * 2^-6. You can see how you quickly run out of bits.