MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / mod

Method mod

projects/JavaScript/proto/int64.js:1675–1680  ·  view source on GitHub ↗

* Modulo this value by other one * @this {!UInt64} * @param {!Int64|!UInt64|number|string} other Other value * @returns {!UInt64} Module of two values

(other)

Source from the content-addressed store, hash-verified

1673 * @returns {!UInt64} Module of two values
1674 */
1675 mod (other) {
1676 if (!Int64.isInt64(other) && !UInt64.isUInt64(other)) {
1677 other = UInt64.fromValue(other)
1678 }
1679 return this.sub(this.div(other).mul(other))
1680 }
1681
1682 /**
1683 * Bitwise NOT this value

Callers

nothing calls this directly

Calls 6

subMethod · 0.95
divMethod · 0.95
isInt64Method · 0.80
isUInt64Method · 0.80
fromValueMethod · 0.45
mulMethod · 0.45

Tested by

no test coverage detected