Skip to content

$decimal->toInt() for -INF, INF, NAN give not correct result (zero) #11

@FoxKeys

Description

@FoxKeys

Hello again.

I have found that $decimal->toInt() return 0 for -INF, INF and NAN.
I suppose, this is wrong. OverflowException seems to be correct for +-INF. And another exception (Invalid_Operation?) for NAN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions