mirror of
https://github.com/usatiuk/nand2tetris.git
synced 2025-10-29 00:27:49 +01:00
7 lines
143 B
Plaintext
7 lines
143 B
Plaintext
class Utils {
|
|
function int mod(int a, int b) {
|
|
var int div;
|
|
let div = Math.divide(a,b);
|
|
return a - (b*div);
|
|
}
|
|
} |