Mod

From Mesham
Revision as of 22:11, 10 January 2010 by Polas (talk | contribs) (Created page with '== Overview == This mod[n,x] function will divide ''n'' by ''x'' and return the remainder. * '''Pass:''' Two integers * '''Returns:''' An integer representing the remainder ==…')
(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

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