We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c658fe commit dbf9515Copy full SHA for dbf9515
src/Data/EuclideanRing.js
@@ -8,14 +8,14 @@ exports.intDegree = function (x) {
8
// https://en.m.wikipedia.org/wiki/Modulo_operation.
9
exports.intDiv = function (x) {
10
return function (y) {
11
- if (y == 0) return 0;
+ if (y === 0) return 0;
12
return y > 0 ? Math.floor(x / y) : -Math.floor(x / -y);
13
};
14
15
16
exports.intMod = function (x) {
17
18
19
var yy = Math.abs(y);
20
return ((x % yy) + yy) % yy;
21
0 commit comments