Next: syslib flonums comparison, Previous: syslib flonums conversion, Up: syslib flonums [Index]
Return #t
if the operand is a representation of not–a–number;
otherwise return #f
.
Return #t
if the operand is a representation of infinity:
+inf.0
or -inf.0
; otherwise return #f
.
Return true if the operand is zero. Notice that the return value will
be true for both +0.0
or -0.0
.
Return true if the operand is +0.0
or -0.0
, respectively.
Return true if the operand is strictly positive. This predicate fails
when applied to +0.0
; to check for positivity including
+0.0
we must use:
(or ($flzero?/positive fl) ($fl> fl +0.0))
Return true if the operand is strictly negative. This predicate fails
when applied to -0.0
; to check for negativity including
-0.0
we must use:
(or ($flzero?/negative fl) ($fl< fl -0.0))
Return #t
if the operand is non–positive. This predicate returns
#f
when applied to -0.0
.
Return #t
if the operand is non–negative. This predicate returns
#f
when applied to +0.0
.
Return true if the operand is even.
Return true if the operand is odd.
Return true if the operand is integer.
Return true if the operand is rational. All the flonums are rational with the exception of infinities and not–a–number.
Next: syslib flonums comparison, Previous: syslib flonums conversion, Up: syslib flonums [Index]