Made to Order Software Corporation Logo

Modulo

SWF Action
Action Category: 
Arithmetic
Action Details: 
0
Action Identifier: 
63
Action Structure: 
<n.a.>
Action Length: 
0 byte(s)
Action Stack: 
pop 2 (n), push 1 (n)
Action Operation: 
n1 := pop();
n2 := pop();
if(is_integer(n1) && is_integer(n2)) {
  r := i2 % i1;
}
else {
  r := f2 % f1;   // in C it would be fmod(f2, f1)
}
push(r);
Action Flash Version: 
5
See Also: 

Pop two numbers, compute the modulo and push the result back on the stack.

Note that the operator can compute a floating point modulo (in case at least one of the parameters is a floating point.)

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.