Message type Int64 and UInt64 are greater than Number.MAX_SAFE_INTEGER
See original GitHub issueThe Int64
and UInt64
message type use string as the data property for inside representations. This might not a problem. However, part of numbers in this size are greater than Number.MAX_SAFE_INTEGER
. So the data precision may be lost when delivering a Int64
or UInt64
number from publisher to subscription.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Number.MAX_SAFE_INTEGER - JavaScript - MDN Web Docs
The Number.MAX_SAFE_INTEGER constant represents the maximum safe integer in JavaScript (2 53 – 1). For larger integers, consider using BigInt .
Read more >Is there a number type with bigger capacity than u_long ...
One immediate issue of using a fixed-length integer value is that code cannot simultaneously detect leading and trailing zeros from "no more ......
Read more >Difference between Int64 and UInt64 in C# - GeeksforGeeks
Int64 stands for signed integer. UInt64 stands for unsigned integer. 3. It can store negative and positive integers.
Read more >Int64 and Uint64 Objects - PinballY Help
Int64 is the signed type, and Uint64 is the unsigned type. ... integer can exactly represent every integer value over the wider ranges...
Read more >What is type int64 in Golang? - Educative.io
uint64. The data types starting from int store signed integers, while those starting with uint contain unsigned integers. The numeric value that follows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s acceptable as the JavaScript integer implementation limit.
Let me close this issue as we don’t want lost any information from other client when using
Int64/UInt64
, and the caller should be aware of using a string to represent theInt64/UInt64
value.