init()Creates a new value equal to zero.
init<T>(T)Creates a new instance from the given integer.
init?(String)Creates a new integer value from the given string.
init<T>(T)Creates an integer from the given floating-point value, rounding toward zero. Any fractional part of the value passed as source is removed.
init?<S>(S, radix: Int)Creates a new integer value from the given string and radix.
init(bigEndian: Self)Creates an integer from its big-endian representation, changing the byte order if necessary.
init<Other>(clamping: Other)Creates a new instance with the representable value that’s closest to the given integer.
init?<T>(exactly: T)Creates a new instance from the given integer, if it can be represented exactly.
init?<T>(exactly: T)Creates an integer from the given floating-point value, if it can be represented exactly.
init(integerLiteral: Self)init(littleEndian: Self)Creates an integer from its little-endian representation, changing the byte order if necessary.
init<T>(truncatingIfNeeded: T)Creates a new instance from the bit pattern of the given instance by truncating or sign-extending if needed to fit this type.
static var isSigned: BoolA Boolean value indicating whether this type is a signed integer type.
static var max: SelfThe maximum representable integer in this type.
static var min: SelfThe minimum representable integer in this type.
static var zero: SelfThe zero value.
static func random(in: ClosedRange<Self>) -> SelfReturns a random value within the specified range.
static func random(in: Range<Self>) -> SelfReturns a random value within the specified range.
static func random<T>(in: ClosedRange<Self>, using: inout T) -> SelfReturns a random value within the specified range, using the given generator as a source for randomness.
static func random<T>(in: Range<Self>, using: inout T) -> SelfReturns a random value within the specified range, using the given generator as a source for randomness.
static func != (lhs: Self, rhs: Self) -> BoolReturns a Boolean value indicating whether two values are not equal.
static func != <Other>(lhs: Self, rhs: Other) -> BoolReturns a Boolean value indicating whether the two given values are not equal.
static func != (lhs: Self, rhs: Self) -> Boolstatic func & (lhs: Self, rhs: Self) -> SelfReturns the result of performing a bitwise AND operation on the two given values.
static func &* (lhs: Self, rhs: Self) -> Selfstatic func &*= (lhs: inout Self, rhs: Self)Multiplies two values and stores the result in the left-hand-side variable, wrapping any overflow.
static func &+ (lhs: Self, rhs: Self) -> SelfReturns the sum of the two given values, wrapping the result in case of any overflow.
static func &+= (lhs: inout Self, rhs: Self)Adds two values and stores the result in the left-hand-side variable, wrapping any overflow.
static func &- (lhs: Self, rhs: Self) -> SelfReturns the difference of the two given values, wrapping the result in case of any overflow.
static func &-= (lhs: inout Self, rhs: Self)Subtracts the second value from the first and stores the difference in the left-hand-side variable, wrapping any overflow.
static func &<< <Other>(lhs: Self, rhs: Other) -> SelfReturns the result of shifting a value’s binary representation the specified number of digits to the left, masking the shift amount to the type’s bit width.
static func &<< (lhs: Self, rhs: Self) -> SelfReturns the result of shifting a value’s binary representation the specified number of digits to the left, masking the shift amount to the type’s bit width.
static func &<<= <Other>(lhs: inout Self, rhs: Other)Returns the result of shifting a value’s binary representation the specified number of digits to the left, masking the shift amount to the type’s bit width, and stores the result in the left-hand-side variable.
static func &>> <Other>(lhs: Self, rhs: Other) -> SelfReturns the result of shifting a value’s binary representation the specified number of digits to the right, masking the shift amount to the type’s bit width.
static func &>> (lhs: Self, rhs: Self) -> SelfReturns the result of shifting a value’s binary representation the specified number of digits to the right, masking the shift amount to the type’s bit width.
static func &>>= <Other>(lhs: inout Self, rhs: Other)Calculates the result of shifting a value’s binary representation the specified number of digits to the right, masking the shift amount to the type’s bit width, and stores the result in the left-hand-side variable.
static func + (x: Self) -> SelfReturns the given number unchanged.
static func += (lhs: inout Self, rhs: Self)static func -= (lhs: inout Self, rhs: Self)static func ... (minimum: Self) -> PartialRangeFrom<Self>Returns a partial range extending upward from a lower bound.
static func ... (maximum: Self) -> PartialRangeThrough<Self>Returns a partial range up to, and including, its upper bound.
static func ... (minimum: Self, maximum: Self) -> ClosedRange<Self>Returns a closed range that contains both of its bounds.
static func ..< (maximum: Self) -> PartialRangeUpTo<Self>Returns a partial range up to, but not including, its upper bound.
static func ..< (minimum: Self, maximum: Self) -> Range<Self>Returns a half-open range that contains its lower bound but not its upper bound.
static func < (x: Self, y: Self) -> Boolstatic func < <Other>(lhs: Self, rhs: Other) -> BoolReturns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
static func << <RHS>(lhs: Self, rhs: RHS) -> SelfReturns the result of shifting a value’s binary representation the specified number of digits to the left.
static func << <Other>(lhs: Self, rhs: Other) -> SelfReturns the result of shifting a value’s binary representation the specified number of digits to the left.
static func <<= <Other>(lhs: inout Self, rhs: Other)static func <= (lhs: Self, rhs: Self) -> BoolReturns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
static func <= <Other>(lhs: Self, rhs: Other) -> BoolReturns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
static func <= (lhs: Self, rhs: Self) -> Boolstatic func == (x: Self, y: Self) -> Boolstatic func == <Other>(lhs: Self, rhs: Other) -> BoolReturns a Boolean value indicating whether the two given values are equal.
static func > (lhs: Self, rhs: Self) -> BoolReturns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
static func > <Other>(lhs: Self, rhs: Other) -> BoolReturns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
static func > (lhs: Self, rhs: Self) -> Boolstatic func >= (lhs: Self, rhs: Self) -> BoolReturns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.
static func >= <Other>(lhs: Self, rhs: Other) -> BoolReturns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.
static func >= (lhs: Self, rhs: Self) -> Boolstatic func >> <RHS>(lhs: Self, rhs: RHS) -> SelfReturns the result of shifting a value’s binary representation the specified number of digits to the right.
static func >> <Other>(lhs: Self, rhs: Other) -> SelfReturns the result of shifting a value’s binary representation the specified number of digits to the right.
static func >>= <Other>(lhs: inout Self, rhs: Other)static func ^ (lhs: Self, rhs: Self) -> SelfReturns the result of performing a bitwise XOR operation on the two given values.
static func | (lhs: Self, rhs: Self) -> SelfReturns the result of performing a bitwise OR operation on the two given values.
static func ~ (x: Self) -> SelfReturns the inverse of the bits set in the argument.