Mod

From Mesham

Jump to: navigation, 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

var a:=mod[7,2];
var y;
y:=mod[a,a];
Personal tools