Protocol

UnsignedInteger

An integer type that can represent only nonnegative values.

Declaration

protocol UnsignedInteger

Topics

Instance Properties

var magnitude: Self

The magnitude of this value.

Type Properties

static var max: Self

The maximum representable integer in this type.

static var min: Self

The minimum representable integer in this type.

Relationships

Inherits From

See Also

Integer

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.