FloatingPointClassification
The IEEE 754 floating-point classes.
@frozen enum FloatingPointClassificationThe IEEE 754 floating-point classes.
@frozen enum FloatingPointClassificationimport Swiftcase negativeInfinityA value equal to -infinity.
case negativeNormalA negative value that uses the full precision of the floating-point type.
case negativeSubnormalA negative, nonzero number that does not use the full precision of the floating-point type.
case negativeZeroA value equal to zero with a negative sign.
case positiveInfinityA value equal to +infinity.
case positiveNormalA positive value that uses the full precision of the floating-point type.
case positiveSubnormalA positive, nonzero number that does not use the full precision of the floating-point type.
case positiveZeroA value equal to zero with a positive sign.
case quietNaNA silent NaN (“not a number”) value.
case signalingNaNA signaling NaN (“not a number”).
protocol BitwiseCopyable : ~Escapableprotocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.