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

Method mod

projects/JavaScript/proto/int64.js:783–788  ·  view source on GitHub ↗

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

(other)

Source from the content-addressed store, hash-verified

781 * @returns {!Int64} Module of two values
782 */
783 mod (other) {
784 if (!Int64.isInt64(other) && !UInt64.isUInt64(other)) {
785 other = Int64.fromValue(other)
786 }
787 return this.sub(this.div(other).mul(other))
788 }
789
790 /**
791 * Bitwise NOT this value

Callers 2

setMethod · 0.45
setMethod · 0.45

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