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

Request for support of 64bit logical operations #779

Open
anandbabu141 opened this issue Apr 24, 2024 · 0 comments
Open

Request for support of 64bit logical operations #779

anandbabu141 opened this issue Apr 24, 2024 · 0 comments

Comments

@anandbabu141
Copy link

The int and long in java are getting converted to number in javascript. The number is using 64 bit floating point format resulting in loss of precision. And the only the lower 32 bit number is considered for operations like & (AND) or << LEFTSHIFT in case of number datatype. The java code I am dealing with has a complex validation logic and am trying to port to javascript using jsweet. I had to manuallly modify the & and << operations using BigInt.

This is not a urgent requirement. Thanks to jsweet that eased my porting work.

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

1 participant