---
title: "init(locale:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/floatingpointformatstyle/percent/init(locale:)"
---

# init(locale:)

Creates a floating-point percent format style that uses the given locale.

## Declaration

```swift
init(locale: Locale = .autoupdatingCurrent)
```

## Parameters

- `locale`: The locale to use when formatting or parsing floating-point values. Defaults to doc://com.apple.foundation/documentation/Foundation/Locale/autoupdatingCurrent.
