Skip to content

[BUG] Plugin can't correctly parse numbers that use the decimal operator of the configured locale #14

Description

@frederikheld

What happens

If I set locale "de-DE" in the settings, the following will not work:

| some numbers | 
| - |
| 10,3 |
| 10,4 |
| 1,5 |
| SUM^|

"SUM^" will incorrectly be calculated as 222,00. It uses the correct decimal separator "," though, but the plugin doesn't interpret other numbers that are using that decimal separator correctly.

The following example will be correct:

| some numbers | 
| - |
| 10.3 |
| 10.4 |
| 1.5 |
| SUM^|

"SUM^" will correctly be calculated as 22,20. It uses the correct decimal separator "," but I have to use the wrong decimal operator "." for the numbers to be summed up in order to make it work.

Expectation

The plugin can deal with numbers that use the decimal operator for the configured locale.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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