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

# IntegerFormatStyle.Currency

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

```
struct Currency
```

## Topics

### Creating an integer currency format style

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

Creates an integer currency format style that uses the given currency code and locale.

### Customizing style behavior

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

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

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

Modifies the format style to use the specified grouping.

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

Modifies the format style to use the specified locale.

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

Modifies the format style to use the specified precision.

[`presentation(_:)`](/documentation/Foundation/IntegerFormatStyle/Currency/presentation(_:))

Modifies the format style to use the specified presentation.

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

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

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

Modifies the format style to use the specified scale.

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

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

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

The type the format style uses for configuration settings.

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

Configuration settings for formatting currency values.

### Formatting integer currency values

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

Formats an integer, using this style.

### Creating attributed strings

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

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

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

A format style that converts integers into attributed strings.

### Accessing style properties

[`currencyCode`](/documentation/Foundation/IntegerFormatStyle/Currency/currencyCode)

The currency code this format style uses.

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

The locale of the format style.

### Applying currency styles

### Applying measurement styles

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

A type that provides localized representations of measurements.

### Applying list styles

### Parsing integer currency values

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

The parse strategy that this format style uses.

### Locating currency values in regular expressions

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