Next: , Previous: , Up: Float   [Index]


1.80.15 Float: testing

isExact

Answer whether the receiver performs exact arithmetic. Floats do not.

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