SexagesimalConvertible
public protocol SexagesimalConvertible : ExpressibleByIntegerLiteral
Confirming types are convertible to base 60 numeric values.
-
Creates a sexagesimal numeric value from the given string.
Declaration
Swift
static func create(from string: String) -> Self?
Parameters
string
The string from which to parse a sexagesimal value.
Return Value
A sexagesimal numeric value, if one was successfully parsed.
-
Multiplies two sexagesimal numeric values.
Declaration
Swift
static func * (lhs: Self, rhs: Self) -> Self
Parameters
lhs
Left hand side multiplier.
rhs
Right hand side multiplier.
Return Value
The result of the multiplication.
-
Adds two sexagesimal numeric values.
Declaration
Swift
static func + (lhs: Self, rhs: Self) -> Self
Parameters
lhs
Left hand side adder.
rhs
Right hand side adder.
Return Value
The result of the addition.
-
create(from:
Default implementation) Default Implementation
Creates a sexagesimal numeric value from the given string.
Declaration
Swift
public static func create(from string: String) -> Self?
Parameters
string
The string from which to parse a sexagesimal value.
Return Value
A sexagesimal numeric value, if one was successfully parsed.
-
create(from:
Default implementation) Default Implementation
Creates a sexagesimal numeric value from the given string.
Declaration
Swift
public static func create(from string: String) -> Self?
Parameters
string
The string from which to parse a sexagesimal value.
Return Value
A sexagesimal numeric value, if one was successfully parsed.