a % b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (cond remaind moved to a % b)
No edit summary
Line 1: Line 1:
 
[[Category:Scripting Commands|#]]
[[Category:Scripting Commands OFP 1.97|#]]
[[Category:Scripting Commands OFP 1.46|#]]
[[Category:Scripting Commands ArmA|#]]


back to [[Scripting_Reference#.23|COMREF]]
back to [[Scripting_Reference#.23|COMREF]]

Revision as of 15:14, 21 April 2006


back to COMREF

a % b


Operand types:

a: Number

b: Number

Type of returned value:

Number

Description:

Remainder, of a divided by b.
Note: Remainder is calculated in real domain.


Example:

4.5 % 3 ..........Result is 1.5