Skip to content

Issue with decimal representation in countries using "," as decimal separator and "." as the thousand separator. #154

@ValdirGiorgi

Description

@ValdirGiorgi

Description:
In Brazil and other countries using "," as a decimal separator, it's common for users to input both "," and "." to represent the decimal point. However, when displaying values, it's preferable to always use "," as the decimal separator.

Currently, the code logic only detects the occurrence of ",." as an incorrect separator. However, in our case, we also need to consider the possibility of ".,", as we use "." as the thousand separator.

Proposed Solution:
Modify the relevant code snippet to include the check for ".,", as follows:

final hasWrongSeparator = newText.contains(',.') || newText.contains('.,');

This change will allow the logic to correctly recognize cases where "." is used as a thousand separator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions