Photo by Chris Liverani on Unsplash

Dealing With Decimals In Smart Contracts

--

In cryptography, we often use unsigned integers, and never have much to do within floating-point values. But, obviously, we need floating-point values for many of our calculations, such as for calculating compound interest in a financial contract or computing the area of a circle. And, so, if we need to implement decimal operations in our smart contracts, we need the addition of code that processes decimal values but…

--

--

Prof Bill Buchanan OBE FRSE
ASecuritySite: When Bob Met Alice

Professor of Cryptography. Serial innovator. Believer in fairness, justice & freedom. Based in Edinburgh. Old World Breaker. New World Creator. Building trust.