In this simple survey:
| type | name | label | calculation |
| begin repeat | group1 | Group 1 | |
| decimal | repeated_decimal | Repeated Decimal Number |
| calculate | calculated_decimal | | number(${repeated_decimal}) |
| end repeat | | | |
| decimal | sum_of_decimal | Sum of Decimal | round(sum(${calculated_decimal}),2) |
the sum_of_decimal value ends up being the concatenation of the repeated_decimals, not the mathematical sum. It works OK if we sum() over repeated_decimal, but sum() assumes they are strings if over calculated_decimal
I tried adding number() in various places in the calculations, to no avail.