Skip to content

Accept decimal commas in calculator queries - #331

Merged
ospfranco merged 1 commit into
ospfranco:mainfrom
chekalsky:feat/eu-calculator-decimals
Sep 6, 2026
Merged

ospfranco merged 1 commit into
ospfranco:mainfrom
chekalsky:feat/eu-calculator-decimals

Conversation

@chekalsky

Copy link
Copy Markdown
Contributor

The calculator uses expr-eval, which only parses dotted decimals, so queries like 123,45 + 543,21 never evaluated.

This normalizes numbers format common in Europe (including 1.234,56) before evaluation, and formats the result with a comma when the query used one. Dotted input like 1.5 + 2.5 is unchanged.

expr-eval only parses dotted decimals, so 123,45 + 543,21 never evaluated.
@ospfranco
ospfranco merged commit 52ca425 into ospfranco:main Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants