SignedInteger
An integer type that can represent both positive and negative values.
protocol SignedInteger : BinaryInteger, SignedNumeric
Supertypes
protocol AdditiveArithmetic
A type with values that support addition and subtraction.
protocol BinaryInteger
An integer type with a binary representation.
protocol Comparable
A type that can be compared using the relational operators
<
,<=
,>=
, and>
.protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByIntegerLiteral
A type that can be initialized with an integer literal.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Numeric
A type with values that support multiplication.
protocol SignedNumeric
A numeric type with a negation operation.
protocol Strideable
A type representing continuous, one-dimensional values that can be offset and measured.
Citizens in Swift
where Self:FixedWidthInteger
Members
static var max: Self
The maximum representable integer in this type.
static var min: Self
The minimum representable integer in this type.