matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!

Home Page:https://matomo.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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