Type Property

leastNonzeroMagnitude

The least positive number.

Declaration

static var leastNonzeroMagnitude: Double { get }

Discussion

This value compares less than or equal to all positive numbers, but greater than zero. If the type supports subnormal values, leastNonzeroMagnitude is smaller than leastNormalMagnitude; otherwise they are equal.

Relationships

From Protocol

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.