Skip to content

Intl.NumberFormatOptions is missing the RoundingType optionΒ #49102

Closed
@ncg777

Description

@ncg777

Bug Report

Hi,

According to the specification and if my understanding is correct, the RoundingType is missing.

πŸ”Ž Search Terms

Possibly related to #36533

πŸ•— Version & Regression Information

I have no idea.

πŸ’» Code

const n = 22
n.toLocaleString("en", {minimumFractionDigits:2, maximumFractionDigits: 2})

The specification mentions this about MinimumFractionDigits and MaximumFractionDigits:
These properties are only used when [[RoundingType]] is fractionDigits.

Therefore, my number is not zero-padded...

πŸ™ Actual behavior

I cannot specify a RoundingType

πŸ™‚ Expected behavior

I can specify a RoundingType.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions