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

# scanFloat(representation:)

## Declaration

```swift
func scanFloat(representation: Scanner.NumberRepresentation = .decimal) -> Float?
```
