Description:
Let's say we have a value 145000, which gets displayed as 145,000 in US locale ( with comma as separator, as expected ).
But in german locale, the same value should be displayed as 145.000 ( because dot is thousands separator in german locale ) , but it gets displayed as just 145 ( no dot at the end ). We tested this in 4.3.3 and in 5.1.1 as well
However, if the value doesn't end with zeros, lets say the value is 145135, in german locale it gets displayed as expected 145.135 ( where dot is thousands separator as per german locale )
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In german locale, we expect that, whenever a value is >= 100,000 , trailing zeros should not be ignored, instead those need to be displayed with thousands separator
Version
Tested in 4.3.3 as well as 5.1.1 , so assuming this is issue since 4.3.3
Screenshots
Platform
Additional context: None
@clepore This is an EP issue, could you move it please?
The easiest way to reproduce this is in this attached example. You will see that if the number has three zeros at the end its cut off changing the number. Drop this in and run, and notice what the Integer column is doing.
Marking as high as it totally changes numbers around, but this is not a regression.
As a workaround using the decimal formatter with minimumFractionDigits and maxFractionDigits will work.
聽聽columns.push({ id: 'quantity', name: 'Integer', field: 'quantity', formatter: Formatters.Decimal, numberFormat: { minimumFractionDigits: 0, maxFractionDigits: 0}});
Put this one in the current sprint in hopes that we can get to this one and pulled one out.
QA Passed. Moving to Done.
Tested in: http://localhost:4000/components/datagrid/test-custom-number-formats.html?locale=de-DE in all OS Browsers & Devices.