Difference between revisions of "Mod"

From Mesham
Jump to navigationJump to search
m
Line 11: Line 11:
 
  var a:=mod(7,2);
 
  var a:=mod(7,2);
 
  var y:=mod(a,a);
 
  var y:=mod(a,a);
 +
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Revision as of 18:35, 13 January 2013

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);

Since: Version 0.41b