Type Property

zero

The zero value.

Declaration

static var zero: Double { 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 pi: Double

The mathematical constant pi.

static var infinity: Double

Positive infinity.

static var greatestFiniteMagnitude: Double

The greatest finite number representable by this type.

static var nan: Double

A quiet NaN (“not a number”).

static var signalingNaN: Double

A signaling NaN (“not a number”).

static var ulpOfOne: Double

The unit in the last place of 1.0.

static var leastNormalMagnitude: Double

The least positive normal number.