---
title: "locale(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/floatingpointformatstyle/percent/locale(_:)"
---

# locale(_:)

Modifies the format style to use the specified locale.

## Declaration

```swift
func locale(_ locale: Locale) -> FloatingPointFormatStyle<Value>.Percent
```

## Parameters

- `locale`: The locale to apply to the format style.

## Return Value

Return Value A floating-point percent format style with the provided locale.

## Discussion

Discussion Use this format style to change the locale used by an existing format style. To instead determine the locale used by this format style, use the locale property.

## See Also

### Customizing style behavior

- [decimalSeparator(strategy:)](foundation/floatingpointformatstyle/percent/decimalseparator(strategy:).md)
- [grouping(_:)](foundation/floatingpointformatstyle/percent/grouping(_:).md)
- [notation(_:)](foundation/floatingpointformatstyle/percent/notation(_:).md)
- [precision(_:)](foundation/floatingpointformatstyle/percent/precision(_:).md)
- [rounded(rule:increment:)](foundation/floatingpointformatstyle/percent/rounded(rule:increment:).md)
- [scale(_:)](foundation/floatingpointformatstyle/percent/scale(_:).md)
- [sign(strategy:)](foundation/floatingpointformatstyle/percent/sign(strategy:).md)
- [FloatingPointFormatStyle.Percent.Configuration](foundation/floatingpointformatstyle/percent/configuration.md)
- [NumberFormatStyleConfiguration](foundation/numberformatstyleconfiguration.md)
