Type Property

zero

The zero value.

Declaration

static var zero: Int { get }

Discussion

Zero is the identity element for addition. For any value, x + .zero == x and .zero + x == x.

See Also

Accessing Numeric Constants

static var min: Int

The minimum representable integer in this type.

static var max: Int

The maximum representable integer in this type.

static var isSigned: Bool

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