paint-brush
Fixed point math in Solidityby@alcueca
1,884 reads
1,884 reads

Fixed point math in Solidity

by Alberto Cuesta Cañada 10mApril 22nd, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In the case of CementDAO we needed logarithms to. implement the. desired configuration towards the desired configuration. We considered that to be a. fair choice in terms of capabilities, as it allows multiplication of larger. numbers in exchange of. larger numbers in. the. number of decimals is possible just by. converting to and from fixed point representation you would displace the comma to the right a fixed number of positions, or “digits” As a. mathematical operation this is new.

People Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Fixed point math in Solidity
Alberto Cuesta Cañada  HackerNoon profile picture
Alberto Cuesta Cañada

Alberto Cuesta Cañada

@alcueca

Hello. I design and build blockchain solutions. I like to make the complex simple.

About @alcueca
LEARN MORE ABOUT @ALCUECA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Alberto Cuesta Cañada  HackerNoon profile picture
Alberto Cuesta Cañada @alcueca
Hello. I design and build blockchain solutions. I like to make the complex simple.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite