Type Property

max

The maximum representable integer in this type.

Required.

Declaration

static var max: Self { get }

Discussion

For unsigned integer types, this value is (2 ** bitWidth) - 1, where ** is exponentiation. For signed integer types, this value is (2 ** (bitWidth - 1)) - 1.