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


12.10.15 Remainder between numbers

These functions perform the integer division between exact and inexact numbers and return the remainder. For all the functions: the second argument must be non–zero. syslib numerics quorem for more details on the operations.

Any number as first argument

Unsafe Operation: $remainder-number-fixnum num fx

Perform the integer division between any exact or inexact integer and a fixnum. If num is not an integer: an error is raised. Return exact or inexact integers.

Unsafe Operation: $remainder-number-bignum num bn

Perform the integer division between any exact or inexact integer and a bignum. If num is not an integer: an error is raised. Return exact or inexact integers.

Unsafe Operation: $remainder-number-flonum num fl

Perform the integer division between any exact or inexact integer and a flonum. If num is not an integer: an error is raised. Return exact or inexact integers.

Any number as second argument

Unsafe Operation: $remainder-fixnum-number fx num

Perform the integer division between a fixnum and any exact or inexact integer. If num is not an integer: an error is raised. Return exact or inexact integers.

Unsafe Operation: $remainder-bignum-number bn num

Perform the integer division between a bignum and any exact or inexact integer. If num is not an integer: an error is raised. Return exact or inexact integers.

Unsafe Operation: $remainder-flonum-number fl num

Perform the integer division between a flonum and any exact or inexact integer. If num is not an integer: an error is raised. Return exact or inexact integers.

Fixnum as first argument

Unsafe Operation: $remainder-fixnum-fixnum fx1 fx2

Perform the integer division between a fixnum and a fixnum; return fixnums.

Unsafe Operation: $remainder-fixnum-bignum fx bn

Perform the integer division between a fixnum and a bignum; return fixnums.

Unsafe Operation: $remainder-fixnum-flonum fx fl

Perform the integer division between a fixnum and a flonum; return flonums.

Bignum as first argument

Unsafe Operation: $remainder-bignum-fixnum bn fx

Perform the integer division between a bignum and a fixnum; return fixnums.

Unsafe Operation: $remainder-bignum-bignum bn1 bn2

Perform the integer division between a bignum and a bignum; return fixnums or bignums.

Unsafe Operation: $remainder-bignum-flonum bn fl

Perform the integer division between a bignum and a flonum; return flonums.

Flonum as first argument

Unsafe Operation: $remainder-flonum-fixnum fl fx

Perform the integer division between a flonum and a fixnum; return flonums.

Unsafe Operation: $remainder-flonum-bignum fl bn

Perform the integer division between a flonum and a bignum; return flonums.

Unsafe Operation: $remainder-flonum-flonum fl1 fl2

Perform the integer division between a flonum and a flonum; return flonums.


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