---
title: textAttributesForNotANumber
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/numberformatter/textattributesfornotanumber
---

# textAttributesForNotANumber

The text attributes used to display the NaN (“not a number”) string.

## Declaration

```swift
var textAttributesForNotANumber: [String : Any]? { get set }
```

## See Also

### Configuring the Display of Numeric Values

- [textAttributesForNegativeValues](foundation/numberformatter/textattributesfornegativevalues.md)
- [textAttributesForPositiveValues](foundation/numberformatter/textattributesforpositivevalues.md)
- [attributedStringForZero](foundation/numberformatter/attributedstringforzero.md)
- [textAttributesForZero](foundation/numberformatter/textattributesforzero.md)
- [attributedStringForNil](foundation/numberformatter/attributedstringfornil.md)
- [textAttributesForNil](foundation/numberformatter/textattributesfornil.md)
- [attributedStringForNotANumber](foundation/numberformatter/attributedstringfornotanumber.md)
- [textAttributesForPositiveInfinity](foundation/numberformatter/textattributesforpositiveinfinity.md)
- [textAttributesForNegativeInfinity](foundation/numberformatter/textattributesfornegativeinfinity.md)
