divEuclid
divEuclid(
dividend,divisor):number
Defined in: packages/core/src/number/integer/div-euclid.ts:12
Euclidean division — the quotient whose remainder is modEuclid, so a === divEuclid(a, b) * b + modEuclid(a, b).
Agrees with divFloor for a positive divisor and rounds the other way
for a negative one: divEuclid(7, -2) === -3, divFloor(7, -2) === -4.
Parameters
Section titled “Parameters”dividend
Section titled “dividend”number
divisor
Section titled “divisor”number
Returns
Section titled “Returns”number
Throws
Section titled “Throws”When divisor is zero.