1
0
Fork
You've already forked modulo_algorithm
0
Modulo algorithm in JavaScript http://horsey_guy.codeberg.page/modulo_algorithm
HTML 100%
2025年10月05日 15:27:20 -07:00
.gitignore Boom 2025年10月05日 15:27:20 -07:00
alternative.html Boom 2025年10月05日 15:27:20 -07:00
index.html Boom 2025年10月05日 15:27:20 -07:00
LICENSE Boom 2025年10月05日 15:27:20 -07:00
README.md Boom 2025年10月05日 15:27:20 -07:00

Simple modulo algorithm

Written in JavaScript for the web

There are two simple algorithms.

One calculates the largest multiple of b smaller than a and subtracts b from a. (typical method)

There's another which simply subtracts b from a until a is greater than or equal to b. (easy method)

Both handle negative a values.

License

Licensed under the EUPL v1.2