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


12.5 Low level bignum operations

The arguments bn to these operations must be bignums. The following bindings are exported by the library (vicare system $bignums). iklib numerics for more functions acting on bignums.

Unsafe Operation: $bignum-positive? bn
Unsafe Operation: $bignum-negative? bn

Evaluate to true if the operand is positive or negative.

Unsafe Operation: $bignum-non-positive? bn
Unsafe Operation: $bignum-non-negative? bn

Evaluate to true if the operand is non–positive or non–negative.

Unsafe Operation: $bignum-even? bn
Unsafe Operation: $bignum-odd? bn

Evaluate to true if the operand is even or odd.

Unsafe Operation: $bignum-byte-ref bn fx

Return a fixnum representing the byte at index fx in the data of bn.

Unsafe Operation: $bignum-size bn

Return a fixnum representing the number of machine words in the data portion of a bignum memory block.

Unsafe Operation: $bignum->flonum bn

Return a flonum object representing bn as inexact number.