1

ERC20 token standards have a variable call decimals but all its functions parameters are uint256, how can I send tokens in decimals. Ex: 0.01 MFT (MyFirstToken)

Kashish Khullar
  • 1,563
  • 3
  • 14
  • 26

1 Answers1

3

There is no such thing as a floating point number in Ethereum. Everything is a 'wei'. An ether is 10^18 wei. The decimals value in the token standard is an indication to wallets and other tools that handle ERC20 tokens instructing them how best to display the token.

Thomas Jay Rush
  • 9,943
  • 4
  • 31
  • 72