Mod Intro

in #furl4 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.17
TRX 0.15
JST 0.028
BTC 57951.76
ETH 2347.51
USDT 1.00
SBD 2.36