Created
December 23, 2023 14:10
-
-
Save WillKirkmanM/701cd839e990c5cf88b9666497725603 to your computer and use it in GitHub Desktop.
How Modulus Works
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function modulus(a, b) { | |
let c = parseInt(a / b) | |
let d = c * b | |
return a - d | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment