this result?
What was your expected result ?
Divide by 1**deciamals of 0
if decimals are 18 would i am not sure i have got the formula right
It would be div or / (10 ** 18 (or _decimals)) I believe Depending how your math works in the contract
cheers i am working on a dapp so i will need to do this calc with the result i get from smart contract
Mine showed tokens only (no zeros) on total supply like this _decimals = 6 _totalSupply = 5000 * (10 ** _decimals) And on the function as above / (10 ** _decimals) Bare in mind I’m not on pc atm to check properly
thanks it works fine
Обсуждают сегодня