init(_:strategy:)
Creates and initializes a decimal by parsing an arbitrary type according to the provided parse strategy.
Declaration
init<S>(_ value: S.ParseInput, strategy: S) throws where S : ParseStrategy, S.ParseOutput == DecimalParameters
- value:
An instance of
strategy’s input type. - strategy:
A parse strategy that describes how the parser converts the string to a decimal value.