---
title: Decimal.FormatStyle.Currency
framework: foundation
role: symbol
role_heading: Structure
path: foundation/decimal/formatstyle/currency
---

# Decimal.FormatStyle.Currency

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

## Declaration

```swift
struct Currency
```

## Topics

### Creating a decimal currency style

- [init(code:locale:)](foundation/decimal/formatstyle/currency/init(code:locale:).md)

### Customizing style behavior

- [decimalSeparator(strategy:)](foundation/decimal/formatstyle/currency/decimalseparator(strategy:).md)
- [grouping(_:)](foundation/decimal/formatstyle/currency/grouping(_:).md)
- [locale(_:)](foundation/decimal/formatstyle/currency/locale(_:).md)
- [precision(_:)](foundation/decimal/formatstyle/currency/precision(_:).md)
- [presentation(_:)](foundation/decimal/formatstyle/currency/presentation(_:).md)
- [rounded(rule:increment:)](foundation/decimal/formatstyle/currency/rounded(rule:increment:).md)
- [scale(_:)](foundation/decimal/formatstyle/currency/scale(_:).md)
- [sign(strategy:)](foundation/decimal/formatstyle/currency/sign(strategy:).md)
- [Decimal.FormatStyle.Currency.Configuration](foundation/decimal/formatstyle/currency/configuration.md)
- [CurrencyFormatStyleConfiguration](foundation/currencyformatstyleconfiguration.md)

### Formatting decimal currency values

- [format(_:)](foundation/decimal/formatstyle/currency/format(_:).md)

### Creating attributed strings

- [attributed](foundation/decimal/formatstyle/currency/attributed.md)
- [Decimal.FormatStyle.Attributed](foundation/decimal/formatstyle/attributed-swift.struct.md)

### Accessing style properties

- [currencyCode](foundation/decimal/formatstyle/currency/currencycode.md)
- [locale](foundation/decimal/formatstyle/currency/locale.md)

### Parsing decimal currency values

- [parseStrategy](foundation/decimal/formatstyle/currency/parsestrategy.md)

### Locating currency values in regular expressions

- [consuming(_:startingAt:in:)](foundation/decimal/formatstyle/currency/consuming(_:startingat:in:).md)

### Instance Methods

- [notation(_:)](foundation/decimal/formatstyle/currency/notation(_:).md)

### Default Implementations

- [CustomConsumingRegexComponent Implementations](foundation/decimal/formatstyle/currency/customconsumingregexcomponent-implementations.md)
- [ParseableFormatStyle Implementations](foundation/decimal/formatstyle/currency/parseableformatstyle-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomConsumingRegexComponent](swift/customconsumingregexcomponent.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [FormatStyle](foundation/formatstyle.md)
- [Hashable](swift/hashable.md)
- [ParseableFormatStyle](foundation/parseableformatstyle.md)
- [RegexComponent](swift/regexcomponent.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
