Hello. Is there any way to use rational number directly without using safemath?
Dec 29, 2020, 7:43 PM
Like 5/10
Dec 29, 2020, 7:43 PM
https://github.com/Uniswap/uniswap-lib/blob/master/contracts/libraries/FixedPoint.sol
Dec 29, 2020, 7:48 PM
Thanks, but compared to safemath, this is more complex. I was looking for a simpler solution....
I can compute the value if I give it without () . But I want to push the value to an array, which is enclosed in ()
The push function
Dec 29, 2020, 7:51 PM