[META] Fix separators / decimals calculations

Created on 5 September 2024, 7 months ago

Problem/Motivation

Meta issue to track and solve related issues about calculations / display done wrong due to different decimal / thousands separator not using the universal notation.

e.g. 1 234.56 (English) would be written as 1.234,56 (German). Summing that up in this module leads to wrong values.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @maintainers: Could you maybe explain a bit how the module handles numeric values and if (or why not) raw values are used?
    Currently this seems unusable for non-default number formattings used in the view output, as described in the example.

    We'd like to help, but it would be great to have a better starting point on how and where this should be fixed and which impediments you see. Thank you!

  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    I was not involved in writing that code and I don't know what the original intent was for how to handle number formatting. I would have to first try to reproduce this problem then figure out what to do about it. Usually, formatting numbers would be something done as late as possible, because this is essentially just theming/presentation and could differ on a per-user/per-page/per-view basis.

    Since you already have a site set up that uses a different number format, you are in a better position to create a test case that demonstrates the problem. That is the first step in finding a solution. If you can do that, it would go a long way towards getting this fixed.

Production build 0.71.5 2024