---
title: isLenient
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/numberformatter/islenient
---

# isLenient

Determines whether the receiver will use heuristics to guess at the number which is intended by a string.

## Declaration

```swift
var isLenient: Bool { get set }
```

## Discussion

Discussion If the formatter is set to be lenient, as with any guessing it may get the result number wrong (that is, a number other than that which was intended).
