divisor? ( m n -- ? )

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

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

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

Next: | integer-log2 ( x -- 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.100 x86.64 (2240, heads/master-b90c89f82e, Sep 26 2023 19:59:25)