ericrsmith35 / DatatableV2

28 stars 24 forks source link

Locale is messing up the percentage fields visualization #76

Open segdan opened 2 years ago

segdan commented 2 years ago

Hi,

I have a problem that seems to be related with the locale of the user that is using the datatable. Basically, when the locale is different from English and the percentage field has 16 or more decimal digits, the percentage gets multiplied by 1000000000000000. Here is an example where the take rate field is set as 0.1000000000000001% and the user locale is Germany(Germany):

image

I've tested this with different locale settings and I can reproduce this with many of those (italy, spain, french, etc..), but when English(US) or English(UK) is selected, the problem disappears. I'm on the 4.0.5 version of the component.