Block: 83

Timestamp: 02:23:49

AuditProfile

Security blog

Fixed Point Arithmetic in Solidity (Using Solady, Solmate, and ABDK as Examples)

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

Connent with me:

Регистрация прошла успешно! Спасибо за внимание!

loader