FloatingPointClassification

enum FloatingPointClassification

The IEEE 754 floating-point classes.

Import import Swift

Cases

case signalingNaN

A signaling NaN ("not a number").

A signaling NaN sets the floating-point exception status when used in many floating-point operations.

Declaration

case quietNaN

A silent NaN ("not a number") value.

Declaration

case negativeInfinity

A value equal to -infinity.

Declaration

case negativeNormal

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

See Also: FloatingPoint.isNormal

Declaration

case negativeSubnormal

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

See Also: FloatingPoint.isSubnormal

Declaration

case negativeZero

A value equal to zero with a negative sign.

Declaration

case positiveZero

A value equal to zero with a positive sign.

Declaration

case positiveSubnormal

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

See Also: FloatingPoint.isSubnormal

Declaration

case positiveNormal

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

See Also: FloatingPoint.isNormal

Declaration

case positiveInfinity

A value equal to +infinity.

Declaration