Skip to content

*Datatable 4.0.5* - _percentage field_ - Locale is messing up the percentage visualization #1156

@segdan

Description

@segdan

Steps to reproduce

Steps to reproduce the behavior:

  1. set user locale to Germany(Germany). The problem is present also with others locale (italy, spain, france, etc..)
  2. create a record with a percentage field with a value of 0.1000000000000001 or any number with 16 decimal digits
  3. use the datatable component to show that record
  4. notice that the percentage is multiplied by 1000000000000000

Expected behaviour

the percentage field should be showed as it is set in the record

Actual behaviour

the percentage field is multiplied by 1000000000000000 and the component shows an incorrect percentage

Screenshots

image

Additional notes

the problem disappears with locale equals to English(US) or English(UK)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions