a % b
Jump to navigation Jump to search
- Example 1:
- 4.5 % 3 // result is 1.5
- Posted on Apr 16, 2006 - 01:34 (UTC)
- round, floor or ceil would be the easier way to round.
- Posted on Jul 21, 2015 - 14:55 (UTC)
- Be careful when dealing with negative numbers. The way a modulo operation treats negatives differs between languages. In SQF truncated division is used, hence: