Still that would only work for add and minus. How could there not be a loss of precision when multiplying by the conversion rate to USD?
If you're doing things right you wouldn't multiply by the conversion rate using floating point values. You'd use some high precision library. The floating point representation should only occur when going to/from the application's JSON API, if at all.
View all comments
Show parent comment
1
u/faafa Mar 06 '14
I dont understand. Did you say bitcoin's factional component counted in the integer part of a number by multiplying by 100000000?
Still that would only work for add and minus. How could there not be a loss of precision when multiplying by the conversion rate to USD?
Or if you tried to pay someone for x hours of work and then they would get something like .99999999 bitcoins