parse(_:)
Parses a floating-point string in accordance with this strategy and returns the parsed value.
Declaration
func parse(_ value: String) throws -> Format.FormatInputParameters
- value:
The string to parse.
Return Value
The parsed integer value.
Discussion
Use this method to repeatedly parse floating-point strings with the same FloatingPointParseStrategy. To parse a single floating-point string, use the initializers inherited from BinaryFloatingPoint that take a String and a FormatStyle as parameters.
This method throws an error if the parse strategy can’t parse the provided string.