How I Wrote A Fixed-Point Solidity Sqrt That Runs In 197 Gas
I live by a simple rule: if a function is on your pocket calculator, I want it in Solidity — as fast as possible, and precise enough that you never have to think about it. Square root is exactly that
defimath.hashnode.dev8 min read