Mod calculator

This online calculator performs modulo operation on integers and on doubles as well (because it just returns reminder of division)

Creative Commons Attribution/Share-Alike License 3.0 (Unported)

This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/8334/. Also, please do not modify any references to the original work (if any) contained in this content.

This online calculator performs modulo operations on two given numbers, dividend and divisor. But those numbers should not be positive integers only; they can be, in fact, negative decimals as well (technically, the calculator accepts valid doubles - double-precision 64-bit floating-point numbers). The calculator returns the remainder of the division, called the modulus, according to an implementation in Javascript language. And, by the way, in Javascript, the sign of the modulus depends only on the sign of the dividend, as you can easily check below. Just try to enter a negative divisor, and you will see that the modulus is still positive, but the negative dividend results in a negative modulus.

And by the way, if you want to play with real modular arithmetic, not just mod operation, check out our Modular arithmetic calculator. It supports congruent operations on integers.

PLANETCALC, Mod calculator

Mod calculator

Digits after the decimal point: 2

URL copied to clipboard
Creative Commons Attribution/Share-Alike License 3.0 (Unported) PLANETCALC, Mod calculator