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

NaN and Infinity are a bit tricky #6

Open
manuel-rubio opened this issue May 1, 2017 · 0 comments
Open

NaN and Infinity are a bit tricky #6

manuel-rubio opened this issue May 1, 2017 · 0 comments
Labels
enhancement help wanted We need help here!

Comments

@manuel-rubio
Copy link
Member

manuel-rubio commented May 1, 2017

For PHP these numbers are identified by the PHP_INT_MIN usually, but Erlang hasn't a limit for integers so, I did the implementation as:

to_int(infinity) -> -9223372036854775808;
to_int(nan) -> -9223372036854775808;

Maybe it should be fixed in another way (see ephp_data.erl for further details).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted We need help here!
Projects
None yet
Development

No branches or pull requests

1 participant