A fixed-point number is an integer that stores only the numerator of a fraction — while the denominator is implied.
This type of arithmetic is not necessary in most programming languages because they have floating point numbers. It is necessary in Solidity because Solidity only has integers, and we often need to perform operations with fractional numbers.
Fixed point numbers are found in most DeFi smart contracts, so understanding them is a must.
Read the full article by awesome RareSkills here:
Link: https://www.rareskills.io/post/solidity-fixed-point#math
#solidity
#solady
#solmate
#fixedpoint
Completely free courses
Learn more about the blockchain world
Free education videos
by RareSkills
by Jeiwan
by RareSkills
by RareSkills
by Andreas M. Antonopoulos, Gavin Wood
by Micah Dameron
Compare execution layer differences between chains
Dive deep into the storage of any contract