Skip to content

CompactDecimalFormatter::format_fixed_decimal should preserve small fractional numbers #6678

Open
@sffc

Description

@sffc

ECMA-402 and ICU4C/ICU4J format 0.2222 as "0.22" in compact notation, but ICU4X appears to be formatting it as 0.

This bug was discovered by the conformance test suite. CC @sven-oly @echeran

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-numbersComponent: Numbers, units, currenciesT-bugType: Bad behavior, security, privacyU-ecma402User: ECMA-402 compatibility

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions