| This is read-only version of the old wiki, feel free to browse it for materials. If you want to share your own materials, please use GeoGebraTube instead. You are also welcome to help us enhance the new wiki. If any questions arise, please contact the webmaster. |
Mod Command
Syntax
Mod[number a, number b]
Action
Returns the remainder when a is divided by b.
Notes:
- The sign of the result has the same sign as the number a.
- Examples: mod[5,3]=2 mod[-5,3]=-2 mod[5,-3]=2 mod[-5,-3]=-2
- The sign of the result varies in other programming environments.
- mod[a,0] is undefined