[Tooling] Improve numberStringFormatter
helper to handle style:"percent"
option
#7399
Open
1 of 3 tasks
Labels
0 - new
New issues that need assignment.
Calcite (design)
Issues logged by Calcite designers.
enhancement
Issues tied to a new feature or request.
estimate - 8
Requires input from team, consider smaller steps.
i18n-l10n
issues dealing with internationalization/localization
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
p - low
Issue is non core or affecting less that 10% of people using the library
Milestone
Check existing issues
Description
Currently, our localized number helper produces unexpected results when using the
style: "percent"
option.Acceptance Criteria
I'd expect to get the same output as I would here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat
where when
value=0.5
,returns
50%
Using our helper and the following
numberFormatOptions
the result is
0%.500%
. Ifvalue=0.75
, the result is0%.700%500%
Relevant Info
cc @benelan
Which Component
No component
Example Use Case
No response
Priority impact
p3 - want for upcoming milestone
Calcite package
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: