Next: , Previous: , Up: iklib numerics   [Index]


6.32.5 Additional ratnum functions

Function: ratnum-positive? rn
Function: ratnum-negative? rn
Function: ratnum-non-negative? rn
Function: ratnum-non-positive? rn

The argument must be a ratnum. Return #t if rn is, respectively: positive, negative, non–positive, non–negative; otherwise return #f.

Function: positive-ratnum? obj
Function: negative-ratnum? obj
Function: non-positive-ratnum? obj
Function: non-negative-ratnum? obj

The argument can be any value. Return #t if obj is a ratnum and it is, respectively: positive, negative, non–positive, non–negative; otherwise return #f.