---
title: "grouping(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/integerformatstyle/currency/grouping(_:)"
---

# grouping(_:)

Modifies the format style to use the specified grouping.

## Declaration

```swift
func grouping(_ group: IntegerFormatStyle<Value>.Currency.Configuration.Grouping) -> IntegerFormatStyle<Value>.Currency
```

## Parameters

- `group`: The grouping to apply to the format style.

## Return Value

Return Value An integer currency format style modified to use the specified grouping.

## See Also

### Customizing style behavior

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