A mod B in Casio fx-115MS
How to get an m mod n (ie to calculate modulo of a number)
It's a bit convoluted, and it only works for integers, but here's one way. Press MODE 4 to switch to BASE-N (integer) mode. If the screen doesn't read "Dec" then press the x^2 key. Now, to calculate m mod n, calculate m-m/n*n. No shortcuts, no rearranging. That's m minus m divided by n times n. You have to enter both numbers twice, but you will get the modulus.
Press MODE 1 to return to your previously scheduled calculations.
×