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

Method sub

projects/JavaScript/proto/int64.js:602–607  ·  view source on GitHub ↗

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

(other)

Source from the content-addressed store, hash-verified

600 * @returns {!Int64} Difference of two values
601 */
602 sub (other) {
603 if (!Int64.isInt64(other) && !UInt64.isUInt64(other)) {
604 other = Int64.fromValue(other)
605 }
606 return this.add(other.neg())
607 }
608
609 /**
610 * Multiply this value with other one

Callers 7

cmpMethod · 0.95
divMethod · 0.95
modMethod · 0.95
toStringMethod · 0.45
toStringMethod · 0.45
divMethod · 0.45
test_int64.jsFile · 0.45

Calls 5

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

Tested by

no test coverage detected