mod
From Bohemia Interactive Community
Click on the images for descriptions
Introduced in
 Game:
 Operation Flashpoint
 Version:
 1.00
Description
 Description:
 Remainder of a divided by b.
Syntax
Examples
 Example 1:
_rem = 3 mod 2;
Result is 1
Additional Information
 Multiplayer:
 
 See also:
 Math CommandsOperatorsa % b
Notes
Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note  How To
Add New Note  How To
Notes
 Posted on 01:34, 16 April 2006
 Hoz

 Remainder is calculated in real domain.
 mod is identical to a % b
_rand = random 6; _num = _rand  (_rand mod 1);
In A1, the new commands round, floor or ceil would be the easier way to round.