---
title: "init(format:lenient:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/decimal/parsestrategy/init(format:lenient:)-22h06"
---

# init(format:lenient:)

Creates a parse strategy instance using the specified decimal currency format style.

## Declaration

```swift
init(format: Format, lenient: Bool = true)
```

## Parameters

- `format`: A configured doc://com.apple.foundation/documentation/Foundation/Decimal/FormatStyle that describes the currency string format to parse.
- `lenient`: A Boolean value that indicates whether the parse strategy should permit some discrepencies when parsing. Defaults to true.

## See Also

### Creating a decimal parse strategy

- [init(format:lenient:)](foundation/decimal/parsestrategy/init(format:lenient:)-46ix2.md)
- [init(format:lenient:)](foundation/decimal/parsestrategy/init(format:lenient:)-36ja3.md)
