Next: , Previous: Float-storing, Up: Float


1.77.11 Float: testing

isFinite
Answer whether the receiver does not represent infinity, nor a NaN


isInfinite
Answer whether the receiver represents positive or negative infinity


isNaN
Answer whether the receiver represents a NaN


negative
Answer whether the receiver is negative


positive
Answer whether the receiver is positive. Negative zero is not positive, so the definition is not simply >= 0.


sign
Answer 1 if the receiver is greater than 0, -1 if less than 0, else 0. Negative zero is the same as positive zero.


strictlyPositive
Answer whether the receiver is > 0