Supposing we have a BigNumber that may or may not have less than 18 decimal places, but we want to divide by 10^18 (or any arbitrary value), how should we handle this? BigNumber libraries typically don't support decimals, so they'll round cases where there's less than 18 decimal places to zero.
Asked
Active
Viewed 65 times
0
-
Does this answer your question? [Division in Ethereum Solidity](https://stackoverflow.com/questions/42738640/division-in-ethereum-solidity) – Yilmaz Nov 16 '22 at 03:43