Skip to content

Instantly share code, notes, and snippets.

@WillKirkmanM
Created December 23, 2023 14:10
Show Gist options
  • Save WillKirkmanM/701cd839e990c5cf88b9666497725603 to your computer and use it in GitHub Desktop.
Save WillKirkmanM/701cd839e990c5cf88b9666497725603 to your computer and use it in GitHub Desktop.
How Modulus Works
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