# T113

> integer literal out of range

**Severity** Error

An integer literal does not fit into the 64-bit signed `int` type (roughly ±9.2 × 10¹⁸).

Use a smaller value, or write a `float` literal (`1.0e20`) if precision beyond 15 digits is not needed.

## Failing example

```flowscope
script "Big counter"
data chart = subscribe(data.ohlcv)
state limit: int = 99_999_999_999_999_999_999
on chart.close {
  if chart.index > limit {
    log.warn("limit reached")
  }
}
```

## Fixed example

```flowscope
script "Big counter"
data chart = subscribe(data.ohlcv)
state limit: int = 9_000_000_000
on chart.close {
  if chart.index > limit {
    log.warn("limit reached")
  }
}
```

## Related

- [T101](/docs/scripting/reference/diagnostics/t101)
