Mod Intro

in #furl5 months ago (edited)

Modulo Operator

Division between two integers doesn't always result in another integer. The division

image.png

left a remainder of 4.

basic.png

"mod" (contained on the image above, very sorry for night mode viewers) _is an operation that returns a remainder of a division. It stands for modulo operator. The division above can be written with modulo operator into

image.png

Given integer a and other integers b, k, and m that satisfy

image.png

equation above can be written using modulo operator into

image.png

Examples :

image.png (v)

Sort:  
Loading...

Coin Marketplace

STEEM 0.20
TRX 0.15
JST 0.030
BTC 65637.68
ETH 2661.86
USDT 1.00
SBD 2.81