Operator Type:
Operator Scope of Action:
Operator Purpose:
Operator First Added:
Operator Altered:
Function [other Function type actions]
Item [operators of similar scope]
Mathematical [other Mathematical operators]
Baseline
mod(argument A,argumentB)
mod() returns argumentA modulo argumentB, i.e. the integer remainder of argumentA/argumentB. Thus:
$MyNumber = mod(11,3);
sets $MyNumber to 2.