---
title: "scanInt(representation:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/scanner/scanint(representation:)"
---

# scanInt(representation:)

## Declaration

```swift
func scanInt(representation: Scanner.NumberRepresentation = .decimal) -> Int?
```
