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

# IntegerFormatStyle.Percent

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

```
struct Percent
```

## Topics

### Creating an integer percent format style

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

Creates an integer percent format style that uses the given locale.

### Customizing style behavior

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

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

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

Modifies the format style to use the specified grouping.

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

Modifies the format style to use the specified locale.

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

Modifies the format style to use the specified notation.

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

Modifies the format style to use the specified precision.

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

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

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

Modifies the format style to use the specified scale.

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

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

[`IntegerFormatStyle.Percent.Configuration`](/documentation/Foundation/IntegerFormatStyle/Percent/Configuration)

The type the format style uses for configuration settings.

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

Configuration settings for formatting numbers of different types.

### Formatting integer percent values

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

Formats an integer, using this style.

### Creating attributed strings

[`attributed`](/documentation/Foundation/IntegerFormatStyle/Percent/attributed)

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

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

A format style that converts integers into attributed strings.

### Accessing style properties

[`locale`](/documentation/Foundation/IntegerFormatStyle/Percent/locale)

The locale of the format style.

### Applying currency styles

### Applying measurement styles

### Applying list styles

### Parsing integer percent values

[`parseStrategy`](/documentation/Foundation/IntegerFormatStyle/Percent/parseStrategy)

The parse strategy that this format style uses.

### Locating percent values in regular expressions

[`consuming(_:startingAt:in:)`](/documentation/Foundation/IntegerFormatStyle/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



---

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)