Mod

From Mesham
Revision as of 12:52, 13 January 2013 by Polas (talk | contribs)
Jump to navigationJump to search

Overview

This mod(n,x) function will divide n by x and return the remainder.

  • Pass: Two integers
  • Returns: An integer representing the remainder

Example

#include <maths>
var a:=mod(7,2);
var y:=mod(a,a);