Staredit Network

Staredit Network -> Concepts -> Mod Function
Report, edit, etc...Posted by Carlsagan43 on 2005-03-07 at 23:11:10
I am learning programming in C++ and found the modulus/modulo function rather handy. Does anyone have any ideas as to how one would implement the mod function?

There are two verisons of the mod function:

The programming one :

7 mod 2 = 1 becuase 7 / 2 leaves a remainder of one


and the math version

100 = 86 (mod 7) becuase 100 - 86 leaves a multiple of seven, 14.


Anyone think they could make a trigger set for this?
Report, edit, etc...Posted by Tuxedo Templar on 2005-03-08 at 02:10:41
If you can do division, you can do mod.

*Points to Binary Calculator map*
Next Page (1)