Enumeration

FloatingPointClassification

The IEEE 754 floating-point classes.

Declaration

@frozen enum FloatingPointClassification

Topics

Enumeration Cases

case negativeInfinity

A value equal to -infinity.

case negativeNormal

A negative value that uses the full precision of the floating-point type.

case negativeSubnormal

A negative, nonzero number that does not use the full precision of the floating-point type.

case negativeZero

A value equal to zero with a negative sign.

case positiveInfinity

A value equal to +infinity.

case positiveNormal

A positive value that uses the full precision of the floating-point type.

case positiveSubnormal

A positive, nonzero number that does not use the full precision of the floating-point type.

case positiveZero

A value equal to zero with a positive sign.

case quietNaN

A silent NaN (“not a number”) value.

case signalingNaN

A signaling NaN (“not a number”).

Instance Properties

var hashValue: Int

The hash value.

Instance Methods

func hash(into: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Operator Functions

static func != (FloatingPointClassification, FloatingPointClassification) -> Bool

Returns a Boolean value indicating whether two values are not equal.

static func == (FloatingPointClassification, FloatingPointClassification) -> Bool

Returns a Boolean value indicating whether two values are equal.