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

Method sub

projects/JavaScript/proto/int64.js:1513–1518  ·  view source on GitHub ↗

* Subtract other value from this value * @this {!UInt64} * @param {!Int64|!UInt64|number|string} other Other value * @returns {!UInt64} Difference of two values

(other)

Source from the content-addressed store, hash-verified

1511 * @returns {!UInt64} Difference of two values
1512 */
1513 sub (other) {
1514 if (!Int64.isInt64(other) && !UInt64.isUInt64(other)) {
1515 other = UInt64.fromValue(other)
1516 }
1517 return this.add(other.neg())
1518 }
1519
1520 /**
1521 * Multiply this value with other one

Callers 1

modMethod · 0.95

Calls 5

addMethod · 0.95
isInt64Method · 0.80
isUInt64Method · 0.80
fromValueMethod · 0.45
negMethod · 0.45

Tested by

no test coverage detected