---
title: "rounded(rule:increment:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/floatingpointformatstyle/currency/rounded(rule:increment:)"
---

# rounded(rule:increment:)

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

## Declaration

```swift
func rounded(rule: FloatingPointFormatStyle<Value>.Currency.Configuration.RoundingRule = .toNearestOrEven, increment: Double? = nil) -> FloatingPointFormatStyle<Value>.Currency
```

## Parameters

- `rule`: The rounding rule to apply to the format style.
- `increment`: A multiple by which the formatter rounds the fractional part. The formatter produces a value that’s an even multiple of this increment. If this parameter is nil (the default), the formatter doesn’t apply an increment.

## Return Value

Return Value A floating-point currency format style modified to use the specified rounding rule and increment.

## See Also

### Customizing style behavior

- [decimalSeparator(strategy:)](foundation/floatingpointformatstyle/currency/decimalseparator(strategy:).md)
- [grouping(_:)](foundation/floatingpointformatstyle/currency/grouping(_:).md)
- [locale(_:)](foundation/floatingpointformatstyle/currency/locale(_:).md)
- [precision(_:)](foundation/floatingpointformatstyle/currency/precision(_:).md)
- [presentation(_:)](foundation/floatingpointformatstyle/currency/presentation(_:).md)
- [scale(_:)](foundation/floatingpointformatstyle/currency/scale(_:).md)
- [sign(strategy:)](foundation/floatingpointformatstyle/currency/sign(strategy:).md)
- [FloatingPointFormatStyle.Currency.Configuration](foundation/floatingpointformatstyle/currency/configuration.md)
- [CurrencyFormatStyleConfiguration](foundation/currencyformatstyleconfiguration.md)
