DAI amount table
| DAI | Base units |
|---|---|
| 0.01 DAI | 10,000,000,000,000,000 |
| 0.5 DAI | 500,000,000,000,000,000 |
| 1 DAI | 1,000,000,000,000,000,000 |
| 10 DAI | 10,000,000,000,000,000,000 |
| 100 DAI | 100,000,000,000,000,000,000 |
| 1,000 DAI | 1,000,000,000,000,000,000,000 |
| 1,000,000 DAI | 1,000,000,000,000,000,000,000,000 |
Questions and answers
How many decimals does DAI have?
DAI uses 18 decimals: 1 DAI is 1,000,000,000,000,000,000 base units on-chain.
How do I convert a raw DAI amount to DAI?
Divide the raw integer by 10^18. For example, 2,500,000,000,000,000,000 base units = 2.5 DAI.
Why do tokens use integer base units?
Blockchains store balances as integers to avoid rounding. The decimals value tells wallets where to put the decimal point when displaying the amount.