<!--
{
  "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" : "Swift",
  "identifier" : "/documentation/Swift/BinaryFloatingPoint/init(_:format:lenient:)-2p118",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:SB10FoundationE_6format7lenientxSS_AA24FloatingPointFormatStyleVyxGSbtKcfc"
  },
  "title" : "init(_:format:lenient:)"
}
-->

# init(_:format:lenient:)

Initialize an instance by parsing `value` with a `ParseStrategy` created with the given `format` and the `lenient` argument.

```
init(_ value: String, format: FloatingPointFormatStyle<Self>, lenient: Bool = true) throws
```

---

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)