An integer type that can represent only nonnegative values.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
protocol UnsignedInteger
An integer type that can represent only nonnegative values.
SDK
Framework
protocol UnsignedInteger
var magnitude: SelfThe magnitude of this value.
static var max: SelfThe maximum representable integer in this type.
static var min: SelfThe minimum representable integer in this type.
protocol BinaryInteger An integer type with a binary representation.
protocol FixedWidthInteger An integer type that uses a fixed size for every instance.
protocol SignedInteger An integer type that can represent both positive and negative values.