Mathematica > Mathematics and Algorithms > Mathematical Functions > Integer Functions >

Divisible

Divisible[n, m]
yields True if n is divisible by m, and yields False if it is not.
  • Divisible[n, m] works for integers or rational numbers n and m.
  • Divisible works with exact numeric quantities, as well as explicit numbers.
  • For exact numeric quantities, Divisible internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team