Skip to content

Edge cases, some questions #24

Open
@zloirock

Description

@zloirock

I see some inconsistency in the readme and the spec draft, let's clarify some edge cases.

NaN - it's a valid value for the number type, a valid output for Number#toString, but it's not a number - should it be parsed?

Infinity - almost the same.

-0 is a valid number, but not a valid output for Number#toString, should it throw?

Should something like Number.fromString('20000000000001', 16) throw an error? It's a valid mathematical number, but it can't be represented in the number type / Number#toString.

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