<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So9NSDecimala10FoundationE11FormatStyleV7PercentV"
  },
  "title" : "Decimal.FormatStyle.Percent"
}
-->

# Decimal.FormatStyle.Percent

A format style that converts between decimal percentage values and their textual representations.

```
struct Percent
```

## Topics

### Creating a decimal percent format style

[`init(locale:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/init(locale:))

Creates a decimal percent format style that uses the given locale.

### Customizing style behavior

[`decimalSeparator(strategy:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/decimalSeparator(strategy:))

Modifies the format style to use the specified decimal separator display strategy.

[`grouping(_:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/grouping(_:))

Modifies the format style to use the specified grouping.

[`locale(_:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/locale(_:))

Modifies the format style to use the specified locale.

[`notation(_:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/notation(_:))

Modifies the format style to use the specified notation.

[`precision(_:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/precision(_:))

Modifies the format style to use the specified precision.

[`rounded(rule:increment:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/rounded(rule:increment:))

Modifies the format style to use the specified rounding rule and increment.

[`scale(_:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/scale(_:))

Modifies the format style to use the specified scale.

[`sign(strategy:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/sign(strategy:))

Modifies the format style to use the specified sign display strategy.

[`Configuration`](/documentation/Foundation/Decimal/FormatStyle/Percent/Configuration)

The type the format style uses for configuration settings.

[`NumberFormatStyleConfiguration`](/documentation/Foundation/NumberFormatStyleConfiguration)

Configuration settings for formatting numbers of different types.

### Formatting decimal percent values

[`format(_:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/format(_:))

Formats an decimal, using this style.

### Creating attributed strings

[`attributed`](/documentation/Foundation/Decimal/FormatStyle/Percent/attributed)

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

[`Attributed`](/documentation/Foundation/Decimal/FormatStyle/Attributed-swift.struct)

A format style that converts integers into attributed strings.

### Accessing style properties

[`locale`](/documentation/Foundation/Decimal/FormatStyle/Percent/locale)

The locale of the format style.

### Applying currency styles

### Applying measurement styles

### Applying list styles

### Parsing decimal percent values

[`parseStrategy`](/documentation/Foundation/Decimal/FormatStyle/Percent/parseStrategy)

The parse strategy that this format style uses.

### Locating decimal values in regular expressions

[`consuming(_:startingAt:in:)`](/documentation/Foundation/Decimal/FormatStyle/Percent/consuming(_:startingAt:in:))

Process the input string within the specified bounds, beginning at the given index, and return the end position (upper bound) of the match and the produced output.

### Supporting types

## Relationships

### Conforms To

[`Decodable`](/documentation/Swift/Decodable)

[`ParseableFormatStyle`](/documentation/Foundation/ParseableFormatStyle)

[`RegexComponent`](/documentation/Swift/RegexComponent)

[`Escapable`](/documentation/Swift/Escapable)

[`Encodable`](/documentation/Swift/Encodable)

[`CustomConsumingRegexComponent`](/documentation/Swift/CustomConsumingRegexComponent)

[`Copyable`](/documentation/Swift/Copyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`FormatStyle`](/documentation/Foundation/FormatStyle)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)