---
id: "P:cAlgo.API.Internals.Symbol.Digits"
kind: "property"
type: "T:cAlgo.API.Internals.Symbol"
url: "https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/Symbol/Digits/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Symbol.Digits

Member of [Symbol](https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/Symbol/index.md).

## Digits

Gets the number of digits for the symbol.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
int Digits {get;}
```

Python:

```python
api.Symbol.Digits: int
```

### Returns

`int` — 

### Examples

C#:

```csharp
protected override void OnTick()
{
    Print("The number of Digits the current symbol  has is: {0}", Symbol.Digits);
}
```

Python:

```python
def on_tick(self):
    print(f"The number of Digits the current symbol  has is: {api.Symbol.Digits}")
```

