~/talk

PRBMath: A Smart Contract Library for Fixed Point Math

Talkat Solidity Summit 2022 · on Wednesday, 2022-04-20· [smart-contracts, blockchain]
links:none on file
slides:none on file

Library implements 18‑decimal fixed point math (log/exp/power/sqrt, mulDiv with improved rounding), uses Solidity 0.8 features and custom errors, and targets DeFi use cases. Tests show 1,400 tests and 96% coverage, npm sees >1,000 weekly downloads. Gas: sqrt ranges ~114–846, power can reach ~24,000. Precision: complex power/exp loses precision to about ~12 decimals in worst cases. Plans include migrating to Foundry and adding a user‑defined value type for stronger type safety.

AI-written summary · about

  1. 0:00Intro
  2. 0:30PRBMath
  3. 8:37QA
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.