Instance Property
isInfinite
A Boolean value indicating whether the instance is infinite.
Declaration
Discussion
Note that isFinite
and isInfinite
do not form a dichotomy, because they are not total: If x
is NaN
, then both properties are false
.
See Also
Querying a Double's State
var isZero: Bool
A Boolean value indicating whether the instance is equal to zero.
var isNaN: Bool
A Boolean value indicating whether the instance is NaN (“not a number”).
var isCanonical: Bool
A Boolean value indicating whether the instance’s representation is in the canonical form.