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

Incorrect rounding from float to int128 and negative int128 to other types #2334

Closed
AEsir777 opened this issue Nov 2, 2023 · 0 comments · Fixed by #2374
Closed

Incorrect rounding from float to int128 and negative int128 to other types #2334

AEsir777 opened this issue Nov 2, 2023 · 0 comments · Fixed by #2374
Labels
bug Something isn't working

Comments

@AEsir777
Copy link
Contributor

AEsir777 commented Nov 2, 2023

-STATEMENT MATCH (p:person) WHERE p.ID=0 RETURN to_int16(p.height), to_int32(p.height), to_int64(p.height), to_int128(p.height), to_double(p.height)
---- 1
2|2|2|1|1.731000

cast(cast(-4324324, int128), int64) -> -9223372036850451486

@AEsir777 AEsir777 changed the title Incorrect rounding from float to int128 Incorrect rounding from float to int128 and negative int128 to other types Nov 2, 2023
@ray6080 ray6080 added the bug Something isn't working label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants