omron — MOD operator

MOD operator MOD operator Syntax ... value MOD value ... Function Compute the modulus of two values. Details The MOD operator operates on two values, resulting in a value that is the remainder after dividing the first value by the second value. (The second value cannot be zero.) For details on how operators are evaluated within expressions, see the Order of Evaluation. Examples Return 1 (5/2 is 2 with a remainder of 1): 5 MOD 2 Return 0 (81/27 is 3 with a remainder of 0): 81 MOD 27 eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 343