obsidian-simple-table-math icon indicating copy to clipboard operation
obsidian-simple-table-math copied to clipboard

Calculation is worng with other locale than "en"

Open HaraldWeber opened this issue 1 year ago • 2 comments

Image

| A    | B    |
|------|------|
| 1    | 2    |
| 2    | 4    |
| 3.1  | 6,1  |
| 4    | 8    |
| SUM^ | SUM^ |

What happens In column A the calculation is correct but 3.1 is in the wrong locale notation. In column B 6,1 is in locale de-DE notation. The sum is calculated wrong. The sum is always displayed in the correct locale.

What should happen The locale setting should also apply to the operands of the SUM operation.

I'm using the following settings Image

HaraldWeber avatar Oct 23 '25 09:10 HaraldWeber

Yeah I would also love to not have to use period as decimal symbol. But nontheless I'm glad this extension exists. Numerals is great too, but this is far more lightweight. Thanks!

Wiredframe avatar Oct 23 '25 21:10 Wiredframe

This also applies to the MUL operation, and I expect it to affect AVG/MIN/MAX as well

RWTH-MK avatar Dec 02 '25 15:12 RWTH-MK