Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Remainder of a division (mod)

Remainder of a division of whole numbers.

How to write it

mod(a, b)

a
The dividend. Takes a whole number.
b
The divisor. Takes a whole number.

Examples

  • 17 mod 5=2\displaystyle 17 \bmod 5 = 2
    mod(17, 5)

    In the solver, mod(17, 5) gives 2.

    Open in the solver
  • (−3) mod 5=2\displaystyle (-3) \bmod 5 = 2
    mod(-3, 5)

    In the solver, mod(-3, 5) gives 2.

    Open in the solver
  • negate

    The negative of a number: the function form of a minus sign.

  • min

    The smallest of some numbers.

  • plus

    Sum of numbers: the function form of +.

  • max

    The largest of some numbers.

  • power

    A power: the function form of ^.

  • log2

    Logarithm to base 2.