Skip to content

Should the constructor accept String versions of Infinity and NaN? #105

@jessealama

Description

@jessealama

Non-finite values should always be represented as Number values, never strings.

We'll need to discuss separately whether new Amount('Infinity') should throw, or end up with .value: Infinity.

Originally posted by @eemeli in #104 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions