Re:Understanding Ethereum Smart Contracts
by workmandan on Wednesday November 29, 2017 @08:40AM
(#15806618)
Interesting point on the lack of floating-point support. I've dealt with storing fiat in real world software and using floating point is a big no-no due to the fact it is only an approximation by its very design. We therefore always stored money as integer cents/pennies etc. How is this approached with digital "money" where there is no smallest divisible unit?
[ Parent
| on HN ]
Re:Understanding Ethereum Smart Contracts
by jatsign on Wednesday November 29, 2017 @08:46AM
(#15806672)
Most of the time by using 18 decimals. One "Ether" is 10^18 "wei", the smallest unit of currency. Most cryptotokens built on ethereum also use that many units...but not all.
Bitcoin is, IIRC, 8 units of precision.
Re:Understanding Ethereum Smart Contracts
by workmandan on Wednesday November 29, 2017 @09:03AM
(#15806812)
Ah that makes sense - if Bitcoin keeps going at its present rate could 8 units of precision simply not be enough? Would a hard-fork be the solution to this?