Token Decimals: Why a Crypto Balance May Show Fewer Digits
What token decimals mean
Token decimals specify how to convert an integer amount in smallest units into the token amount shown to a user: divide by 10 raised to the number of decimals. For an ERC-20 token with 6 decimals, 1,000,000 smallest units represent one token.
The ERC-20 standard defines decimals() as optional metadata. Do not assume that every token exposes this method or uses 18 decimals; verify the asset on the intended network using its issuer's documentation and contract details. Other token standards may expose precision differently.
Decimals do not identify the blockchain, establish a token's price or prove that assets sharing a ticker are interchangeable. A token on another network can have a different contract and deposit requirements.
Why wallet balances can look different
A shorter balance display does not by itself mean that tokens are missing. Wallets and portfolio apps can hide trailing zeros, round a balance or limit the decimal places shown, while the underlying integer balance stays the same.
OpenZeppelin's ERC-20 documentation explains that contract balances and transfers use integers; interfaces apply the decimal scaling for display. Token precision and a wallet's chosen display precision are separate settings.
For a hypothetical token with 6 decimals, a balance of 20.123456 tokens might be rounded to 20.12 on a summary screen. That shorter number does not establish the full balance or the amount a transfer will send. Check the expanded amount and transaction review rather than copying a rounded portfolio total.
A worked example of smallest units
With 6 decimals, 20.123456 tokens equal 20,123,456 smallest units. The examples below show conversions only; they are not live quotes or instructions to send these amounts.
| Token decimals | Integer amount in smallest units | Token amount |
|---|---|---|
| 0 | 20 | 20 |
| 6 | 20123456 | 20.123456 |
| 18 | 1500000000000000000 | 1.5 |
A token with 6 decimals cannot represent 20.1234567 tokens in its smallest units. Do not silently round a swap deposit: if the order amount cannot be entered exactly, pause and contact support before funding it. In an ordinary wallet send field labelled in tokens, enter the token amount, not the integer smallest-unit value; check the wallet's field label and documentation if uncertain.
What to check before sending
Before funding a swap, verify the asset, network, full deposit address and exact order amount together. A matching ticker or a familiar-looking balance is insufficient.
- Confirm the token's contract or mint on the selected network against the issuer's official information. The token identifier is not the destination address; send to the deposit address on your order.
- Compare the full amount in the wallet's transaction review with the order. If a withdrawal service deducts its fee from the transfer, check the amount that will arrive, not just the amount debited from your account.
- If a wallet conceals digits or cannot represent the amount, stop and check its documentation or contact support. Do not add zeros, change token metadata or use a send-all button just to make two displays look alike.
- Keep the network's native asset available for gas when your wallet requires it. A native-asset network fee and the token's decimal precision are separate concepts.
- Send only while the order is active. If it has expired or you already sent an incorrect amount, contact support with the swap ID and transaction hash rather than sending another payment or reusing an expired address.
ShadowSwap is custodial during processing: it controls the one-time deposit address, waits for the required network confirmations and sends the payout manually. A confirmed deposit is not a promise of an immediate payout. See how ShadowSwap works and supported coins and networks before creating an order.
Check the exact route and limits on BTC to USDT on TRC20, USDT on TRC20 to BTC or ETH to USDT on ERC20. These are different routes; decimal formatting does not make their networks interchangeable.
Sources
- ERC-20: Token Standard — Ethereum Improvement Proposals
- ERC-20: A Note on Decimals — OpenZeppelin
Swaps mentioned in this guide
Each page shows limits, networks and confirmations, with the pair preselected.
Drafted with AI assistance by the ShadowSwap team.
Spotted an error? Tell us — corrections are handled as described in our corrections policy.