<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NumberFormatter/attributedStringForZero",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSNumberFormatter(py)attributedStringForZero"
  },
  "title" : "attributedStringForZero"
}
-->

# attributedStringForZero

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

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

## 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](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/DataFormatting/DataFormatting.html#//apple_ref/doc/uid/10000029i).

### Special Considerations

This method is for use with formatters using `NSNumberFormatterBehavior10_0` behavior.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)