GTAG - Modding - Opcode Database - 0B14
Opcode Database
0B14
| Description | Performs a modular operation, returning the remainder of an integer division. Examples 1 = 5 MOD 4 (when 5 is divided by 4, 1 is left) 2 = 6 MOD 4 (when 6 is divided by 4, 2 are left) |
|---|---|
| Parameters (v2) | 1) Integer (INT) 2) Integer (INT) 3) (Returned) Integer (INT) |
| Games | |
| Category | IntOperations |
| San Andreas | |
| sascm.ini | 0B14=3,modulo %1d% mod %2d% store_to %3d% |
| Example | 0B14: modulo 0@ mod 5 store_to 0@ |
| Command Name | MODULO |

