Mod

From BR Wiki
Revision as of 21:37, 26 January 2012 by Mikhail.zheleznov (talk | contribs)
Jump to navigation Jump to search

The Mod internal function returns the remainder of the numerator divided by the denominator. In other words, it is the remainder left after the division of one integer by another

Mod( numerator, denominator )

Comments and Examples

 7 divided by 3 equals 2 with a remainder of 1
00010 print MOD(7,3)
00020 print MOD(6,3)
00030 print MOD(5,3)

Output:

1
0
2

See also Rem (Internal Function).