Int8
Represents an 8-bit signed integer. While for most purposes you can represent
the same data with Int8
and UInt8
, you will encounter trouble when
performing comparisons. Other operations are the same as VSL uses thetwo
's-complement representation of signed integers.
A defined integers in VSL cannot be implicitly cast to another due to the potential unsafe loss of precision.
Initializers
Methods
public func toString(base: Int32) -> String
Converts to a string
Static Methods
public static func +(lhs: Int8, rhs: Int8) -> Int8
public static func -(lhs: Int8, rhs: Int8) -> Int8
public static func *(lhs: Int8, rhs: Int8) -> Int8
public static func /(lhs: Int8, rhs: Int8) -> Double
public static func \(lhs: Int8, rhs: Int8) -> Int8
public static func %(lhs: Int8, rhs: Int8) -> Int8
public static func ==(lhs: Int8, rhs: Int8) -> Bool
public static func !=(lhs: Int8, rhs: Int8) -> Bool
public static func >=(lhs: Int8, rhs: Int8) -> Bool
public static func <=(lhs: Int8, rhs: Int8) -> Bool
public static func >(lhs: Int8, rhs: Int8) -> Bool
public static func <(lhs: Int8, rhs: Int8) -> Bool
public static func &(lhs: Int8, rhs: Int8) -> Int8
public static func |(lhs: Int8, rhs: Int8) -> Int8
public static func ^(lhs: Int8, rhs: Int8) -> Int8
public static func <<(lhs: Int8, rhs: Int8) -> Int8
public static func >>(lhs: Int8, rhs: Int8) -> Int8
public static func >>>(lhs: Int8, rhs: Int8) -> Int8
public static func ~(expression: Int8) -> Int8
public static func -(expression: Int8) -> Int8
public static func random(from: Int8, to: Int8) -> Int8
Generates random number in range [from, to)