Type Property

max

The maximum representable integer in this type.

Declaration

static var max: Int { get }

Discussion

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

See Also

Accessing Numeric Constants

static var zero: Int

The zero value.

static var min: Int

The minimum representable integer in this type.

static var isSigned: Bool

A Boolean value indicating whether this type is a signed integer type.