init(_:radix:)

Initialize a big integer from an ASCII representation in a given radix. Numerals above 9 are represented by letters from the English alphabet.

String Conversion.swift:42
init?<S>(_ text: S, radix: Int = 10) where S : StringProtocol

Parameters

text

A string consisting of characters corresponding to numerals in the given radix. (0-9, a-z, A-Z)

radix

The base of the number system to use, or 10 if unspecified.

Returns

The integer represented by text, or nil if text contains a character that does not represent a numeral in radix.