Mod

Modulo operator - returns the remainder of integer division

Keywords

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

Modulo operator - returns the remainder of integer division

Technical Exegesis...

Modulo operator - returns the remainder of integer division. Syntax is a Mod b. Divides the left operand by the right operand and returns the remainder. Useful for cycling through values, checking if numbers are even/odd, or implementing wraparound behavior. For example, 10 Mod 3 returns 1.

Example

Example.bam
; No example implemented yet