---
title: attributedStringForZero
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/numberformatter/attributedstringforzero
---

# attributedStringForZero

The attributed string that the receiver uses to display zero values.

## Declaration

```swift
@NSCopying var attributedStringForZero: NSAttributedString { get set }
```

## Discussion

Discussion By default zero values are displayed according to the format specified for positive values; for more discussion of this subject see Data Formatting Guide. Special Considerations This method is for use with formatters using NSNumberFormatterBehavior10_0 behavior.

## See Also

### Configuring the Display of Numeric Values

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