Dealing With Decimals In Smart Contracts
Published in
4 min readApr 10, 2022
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…