Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long-Number conversion accuracy #37

Closed
cosmospostman opened this issue Jan 3, 2013 · 2 comments
Closed

Long-Number conversion accuracy #37

cosmospostman opened this issue Jan 3, 2013 · 2 comments

Comments

@cosmospostman
Copy link

Hi,

Some of my Java methods return a long, whose accuracy is not maintained when converted to a JavaScript Number. The number is an ID (arithmetic operations aren't required), but I eventually need to pass it through to other Java methods.

Is there a way to accurately get the String value of this long (for display and reference in JS land) and then convert back to a long to pass to Java methods?

Thanks!

@joeferner
Copy link
Owner

Just published a new version (v0.2.0) which keeps longs and long objects.

@cosmospostman
Copy link
Author

Thanks Joe, works like a charm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants