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

-0.0 and 0.0 are no longer equivalent in OTP 27.0 #61

Open
ed-flanagan opened this issue Jun 1, 2024 · 0 comments
Open

-0.0 and 0.0 are no longer equivalent in OTP 27.0 #61

ed-flanagan opened this issue Jun 1, 2024 · 0 comments

Comments

@ed-flanagan
Copy link
Owner

ed-flanagan commented Jun 1, 2024

In

# NOTE: assume no distinction between 0 and -0
# this may not be entirely correct
def encode(0, _sign), do: <<0>>
we assume -0 is equivalent to 0.

OTP 27 will 0.0 will no longer be exactly equivalent to -0.0.12
The update is for floating point 0's, so this is likely moot. But just wanted to have an issue for when Elixir v1.17 is released and we can test OTP 27

Footnotes

  1. https://www.erlang.org/patches/otp-27.0#OTP-27.0

  2. https://erlangforums.com/t/in-erlang-otp-27-0-0-will-no-longer-be-exactly-equal-to-0-0/2586

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

No branches or pull requests

1 participant