Memecoin trading 2 min read

Token decimals and the balance shown in a wallet

Convert a raw integer to token units and check which mint or contract supplied the decimal count.

A micrometer measures a small red counter beside a larger yellow counter.
View the worked illustrationClose illustration

Scroll the illustration to inspect the details.

Both display values come from the same integer under different hypothetical token definitions.

A blockchain can store a token balance as an integer while a wallet displays a decimal amount. Divide the raw integer by ten raised to the token’s decimal count. Decimals control the display scale. They do not state the asset’s dollar value or the number of units in someone else’s wallet.

Use the mint or contract that owns the record

For a raw balance of 12,345,678 and six decimals, divide by 1,000,000. The display reads 12.345678 tokens. With nine decimals the same integer would display as 0.012345678. A three-place difference changes the result by a factor of 1,000. Keep the raw number unchanged while checking the metadata.

On Solana the mint records decimals. ERC-20 describes decimals as optional metadata, so a generic parser cannot safely assume every token returns a value. If a wallet shows an unfamiliar symbol or omits decimals, verify the chain and contract first. Two unrelated assets may share a ticker and use different scales.

Compare like records before pricing the balance

Choose the same token, account and snapshot for both sides. Multiply the converted token quantity by a quoted unit price only after the scale is known. Keep precision until the final display. Rounding a small holding to zero on one screen does not prove the raw balance is zero or that a token account can be closed.

The token contract checklist helps identify which asset defines the decimal count.

Create a Token Mint - Solana Developer Docs · ERC-20: Token Standard

Compare memecoin trading platformsOrder types, fees and supported networks

Read next

More from this space