Mod

From Mesham
Revision as of 15:44, 15 April 2019 by Polas (talk | contribs) (4 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>

function void main() {
   var a:=mod(7,2);
   var y:=mod(a,a);
};

Since: Version 0.41b