[Bug] Event values with a comma
Chardonneaur opened this issue · comments
What happened?
If a value in the event is pushed with many number after the comma, then it becomes a 0. For example this value: 1.8322818987906002 will be pushed as 0.
What should happen?
I understand the limit of numbers after the comma, but shouldn't it be rounded instead? It seems that normally Matomo round it after three numbers if the value has 5 numbers after the comma. So why not applying this rule?
How can this be reproduced?
Push an event value, for example: 1.8322818987906002 (which is co2 consumtion)
Matomo version
5
PHP version
No response
Server operating system
No response
What browsers are you seeing the problem on?
No response
Computer operating system
No response
Relevant log output
No response
Validations
- Read our Contributing Guidelines.
- Follow our Security Policy.
- Check that there isn't already an issue that reports the same bug to avoid creating duplicates.
- The provided steps to reproduce is a minimal reproducible of the Bug.