Skip to content

Add approximately pattern #10

@sffc

Description

@sffc

Given https://unicode-org.atlassian.net/browse/CLDR-11431, the following is how we could add the approximately pattern to Intl.NumberFormat:

new Intl.NumberFormat({
  signDisplay: "approximately"
});

Expected outputs:

Input en-US result with signDisplay: "approximately"
5 ~5
0 ~0
-0 -0
-5 -5

Alternatively, we could throw RangeError on the negative numbers, since the behavior with them is not well-defined in CLDR.

Related: #6

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-consensusHas consensus and ready to implement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions