Skip to content

NaN and Infinity are a bit tricky #6

@manuel-rubio

Description

@manuel-rubio

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions