Phantom Documentation

[Help Home] [Phantom Home]
mod

int mod(int,int)

Return Type: int
Parameters: int Numerator, int Denomenator

Description:
This function calculates the modulus (remainder) from the division of the Numerator by the Denomenator.

Example Code
1 >>int N = 16;
2 >>int D = 6;
3 >>int M = mod(N, D);
4 >>disp(M);
4

See also the '%' operator.
 


Copyright 2000-2011 Phantom Automated Solutions