@lucid-softworks/number-modulo
v0.1.0
Published
Compute mathematical modulo with the divisor's sign.
Maintainers
Readme
@lucid-softworks/number-modulo
Compute mathematical modulo with the divisor's sign.
import { modulo } from "@lucid-softworks/number-modulo";
modulo(-1, 5); // 4See the exported types and tests for exact edge-case behavior.
