<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Decimal/ParseStrategy/init(format:lenient:)-22h06",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So9NSDecimala10FoundationE13ParseStrategyVAcbCE11FormatStyleV8CurrencyVRszrlE6format7lenientAEy_AIGAI_Sbtcfc"
  },
  "title" : "init(format:lenient:)"
}
-->

# init(format:lenient:)

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

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

## Parameters

`format`

A configured [`Decimal.FormatStyle`](/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`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)