Justin Goro
1 min readOct 18, 2019

--

In Solidity, how would you implement a fractional power algorithm like square root? I found a suggestion on stackoverflow but it looked fairly gassy to implement with looping which I always try to avoid in case cases cause transactions to run out of gas.

--

--

Justin Goro
Justin Goro

Written by Justin Goro

Creator of WeiDai and 92 times emperor of Tsuranuanni

No responses yet