> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-docs-add-b20-spec.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IB20.decimals

> Generated B20 reference for decimals().

[Related concept](/base-chain/specs/upgrades/beryl/b20)

## Signature

```solidity theme={null}
function decimals() external view returns (uint8);
```

| Field               | Value        |
| ------------------- | ------------ |
| Selector            | `0x313ce567` |
| Canonical signature | `decimals()` |

## Description

Number of decimal places. Immutable per token variant.
Return: Number of decimal places.

## Access control

Read-only or ERC-20-standard access rules unless the NatSpec states otherwise.

## Policy interaction

No direct policy interaction.

## Example

```solidity theme={null}
IB20(target).decimals();
```

## Related

* [IB20 reference](/base-chain/specs/upgrades/beryl/b20/specification/reference/interfaces/IB20)
* [Constants & addresses](/base-chain/specs/upgrades/beryl/b20/specification/reference/constants-and-addresses)
