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.
Bottom Section
Categories:
 Pages using duplicate arguments in template calls
 Scripting Commands
 Introduced with Operation Flashpoint version 1.00
 Scripting Commands OFP 1.99
 Scripting Commands OFP 1.96
 Scripting Commands OFP 1.46
 Scripting Commands ArmA
 Command Group: Math
 Scripting Commands ArmA2
 Scripting Commands Arma 3
 Scripting Commands Take On Helicopters