question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Message type Int64 and UInt64 are greater than Number.MAX_SAFE_INTEGER

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
qiuzhongcommented, Oct 24, 2017

It’s acceptable as the JavaScript integer implementation limit.

0reactions
minggangwcommented, Oct 24, 2017

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 the Int64/UInt64 value.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found