Skip to content

Default fractional digits no longer displayed after #113 #149

@anba

Description

@anba

I've missed this in the review for #113, but the changes from #113 actually also changed the format output. For example:

new Intl.DurationFormat("en", {seconds: "numeric"}).format({seconds: 1, milliseconds: 3})

Returned "1.003" before #113, but is now returning "1".

It was returning "1.003", because when fractionalDigits = undefined was passed to the Intl.NumberFormat, the default minimum and maximum fractional digits from Intl.NumberFormat were applied. (mnfdDefault = 0 and mxfdDefault = 3 in InitializeNumberFormat.)

#144 may resolve this issue anyway, but I still thought it's worthwhile to file an issue about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsnormative

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions