DoubleValueConvertible
public protocol DoubleValueConvertible
This protocol specifies that the types using it should be able to convert their forms into a Double format.
-
Returns Double value or nil if conversion isn’t possible.
Declaration
Swift
var doubleValue: Double? { get }
-
Returns Double value or 0.0 if conversion isn’t possible.
Declaration
Swift
var doubleValueOrDefault: Double { get }