<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Decimal/FormatStyle/Percent/attributed",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So9NSDecimala10FoundationE11FormatStyleV7PercentV10attributedAE10AttributedVvp"
  },
  "title" : "attributed"
}
-->

# attributed

An attributed format style based on the decimal percent format style.

```
var attributed: Decimal.FormatStyle.Attributed { get }
```

## Discussion

Use this modifier to create an [`Decimal.FormatStyle.Attributed`](/documentation/Foundation/Decimal/FormatStyle/Attributed-swift.struct) instance, which formats values as [`AttributedString`](/documentation/Foundation/AttributedString) instances. These attributed strings contain attributes from the [`AttributeScopes.FoundationAttributes.NumberFormatAttributes`](/documentation/Foundation/AttributeScopes/FoundationAttributes/NumberFormatAttributes) attribute scope. Use these attributes to determine which runs of the attributed string represent different parts of the formatted value.

---

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)