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


6.32.4 Additional bignum functions

Function: bignum-positive? bn
Function: bignum-negative? bn
Function: bignum-non-negative? bn
Function: bignum-non-positive? bn

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

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

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

Function: bignum-odd? bn

The argument must be a bignum. Return #t if it is odd, otherwise return #f.

Function: bignum-even? bn

The argument must be a bignum. Return #t if it is even, otherwise return #f.

Function: least-positive-bignum

Return the smallest positive bignum.

Function: greatest-negative-bignum

Return the greatest negative bignum.