divisor? ( m n -- ? )
Factor handbook » The language » Numbers » Mathematical functions » Integer functions

Prev:odd? ( n -- ? )
Next:integer-log2 ( x -- n )


Vocabulary
math.functions

Inputs
man integer
nan integer


Outputs
?a boolean


Word description
Tests if n is a divisor of m. This is the same thing as asking if m is divisible by n.

Notes
Returns t for both negative and positive divisors, as well as for trivial and non-trivial divisors.

Definition