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

Method toNumber

projects/JavaScript/proto/int64.js:278–280  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

276 * @returns {number} Result number
277 */
278 toNumber () {
279 return this.high * INT64_TWO_PWR_32_DBL + (this.low >>> 0)
280 }
281
282 /**
283 * Converts the Int64 to a string written in the specified radix

Callers 13

mulMethod · 0.95
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
toJSONMethod · 0.45
toJSONMethod · 0.45
divMethod · 0.45
mulMethod · 0.45
divMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected