divisor? ( m n -- ? )

Factor handbook » The language » Numbers » Mathematical functions » Integer functions

Factor handbook » The language » Numbers » Mathematical functions » Integer functions

Prev: | odd? ( n -- ? ) |

Vocabulary

math.functions

Inputs

Outputs

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

math.functions

Inputs

m | an integer |

n | an 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

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2203, heads/master-424edf64aa, Mar 8 2023 13:48:50)