Number
public struct Number : Hashableextension Number: CalculationOperandConvertibleextension Number: Shortcutextension Number: ConditionNumberOperandConvertibleextension Number: ConditionOperandConvertibleextension Number: Encodableextension Number: ExpressibleByFloatLiteralextension Number: ExpressibleByIntegerLiteralextension Number: CustomStringConvertibleextension Number: Comparableextension Number: EquatableA wrapper for numeric types supported by the Shortcuts app.
- 
                  
                  Returns a number initialized to contain a given value, treated as an Int8. DeclarationSwift public init(_ value: Int8)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as an Int16. DeclarationSwift public init(_ value: Int16)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as an Int32. DeclarationSwift public init(_ value: Int32)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as an Int64. DeclarationSwift public init(_ value: Int64)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as an integer of platform-dependent size. DeclarationSwift public init(_ value: Int)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as a UInt8. DeclarationSwift public init(_ value: UInt8)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as a UInt16. DeclarationSwift public init(_ value: UInt16)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as a UInt32. DeclarationSwift public init(_ value: UInt32)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as a UInt64. DeclarationSwift public init(_ value: UInt64)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as a unsigned integer of platform-dependent size. DeclarationSwift public init(_ value: UInt)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as a double-precision floating-point value. DeclarationSwift public init(_ value: Double)ParametersvalueThe value for the new number. 
- 
                  
                  Returns a number initialized to contain a given value, treated as a single-precision floating-point value. DeclarationSwift public init(_ value: Float)ParametersvalueThe value for the new number. 
- 
                  
                  Hashes the essential components of this value by feeding them into the given hasher. DeclarationSwift public func hash(into hasher: inout Hasher)ParametershasherThe hasher to use when combining the components of this instance. 
- 
                  
                  DeclarationSwift public var calculationOperand: CalculationOperand { get }
- 
                  
                  The contents of the shortcut. DeclarationSwift public var body: some Shortcut { get }
- 
                  
                  A number operand that represents this value. DeclarationSwift public var conditionNumberOperand: ConditionNumberOperand { get }
- 
                  
                  An operand that represents this value. DeclarationSwift public var conditionOperand: ConditionOperand { get }
- 
                  
                  Encodes this value into the given encoder. Throws This function throws an error if any values are invalid for the given encoder’s format.DeclarationSwift public func encode(to encoder: Encoder) throwsParametersencoderThe encoder to write data to. 
- 
                  
                  Creates an instance initialized to the specified floating-point value. Attention Do not call this initializer directly. Instead, initialize a variable or constant using a floating-point literal. DeclarationSwift public init(floatLiteral value: Double)ParametersvalueThe value of the new instance. 
- 
                  
                  Creates an instance initialized to the specified integer value. Attention Do not call this initializer directly. Instead, initialize a variable or constant using an integer literal. DeclarationSwift public init(integerLiteral value: Int64)ParametersvalueThe value of the new instance. 
- 
                  
                  A textual representation of this instance. DeclarationSwift public var description: String { get }
- 
                  
                  Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument. DeclarationSwift public static func < (lhs: Number, rhs: Number) -> BoolParameterslhsA value to compare. rhsAnother value to compare. Return ValueTrue the value of the first argument is less than that of the second argument, false otherwise. 
- 
                  
                  Returns a Boolean value indicating whether two values are equal. DeclarationSwift public static func == (lhs: Number, rhs: Number) -> BoolParameterslhsA value to compare. rhsAnother value to compare. Return ValueTrue if the two values are equal, false otherwise. 
 View on GitHub
View on GitHub Number Structure Reference
        Number Structure Reference