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

Method toNumber

projects/JavaScript/proto/int64.js:1192–1194  ·  view source on GitHub ↗

* Converts the UInt64 to a the nearest floating-point representation of this value (double, 53 bit mantissa) * @this {!UInt64} * @returns {number} Result number

()

Source from the content-addressed store, hash-verified

1190 * @returns {number} Result number
1191 */
1192 toNumber () {
1193 return ((this.high >>> 0) * UINT64_TWO_PWR_32_DBL) + (this.low >>> 0)
1194 }
1195
1196 /**
1197 * Converts the UInt64 to a string written in the specified radix

Callers 1

mulMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected