Skip to content

Ambiguous minimumFractionDigits resolution #946

Open
@longlho

Description

In https://tc39.es/ecma402/#sec-setnfdigitoptions 23.a.iii the sequence to set mnfd is ambiguous when mxfd is undefined.

3. Let mxfd be ? Get(options, "maximumFractionDigits").
...
ii. Set mxfd to ? DefaultNumberOption(mxfd, 0, 100, undefined).
iii. If mnfd is undefined, set mnfd to min(mnfdDefault, mxfd).

At this point, mxfd can be undefined which makes the operation min(mnfdDefault, mxfd) ambiguous. How should I handle this case?

Ref: formatjs/formatjs#4678

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