Hi Franz! This happens because, in Javascript, all numbers are encoded as double precision floating point numbers, following the international IEEE 754 standard. You can also check this W3Schools resource for additional information.
wow very unexpected… Never faced with such a problem in many different languages.
If I have understood correctly, the values must be multiplied by 10. Do you know is there also a workaround that works together with ‘reduce’?
I did a return data.toFixed(2)
for now. It works, but it is a quick an dirty solution