You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All (conversion) rates in my Piwik installation were integer valued (1.0%, 2.0%, ) instead of (1.2%, 2.6%, etc.). The reason seems to be the localization of PHP. My Server is located in Germany and float numbers are represented by a decimal comma:
However, MySql doesn't understand the comma based floats and just seems to cut of all decimal places resulting in the integer valued rates. I've solved it by adding the following code line somewhere in the code
#!php
setlocale(LC_NUMERIC, 'C');
But probably there is a solution in not such a hacky way.
The text was updated successfully, but these errors were encountered:
All (conversion) rates in my Piwik installation were integer valued (1.0%, 2.0%, ) instead of (1.2%, 2.6%, etc.). The reason seems to be the localization of PHP. My Server is located in Germany and float numbers are represented by a decimal comma:
However, MySql doesn't understand the comma based floats and just seems to cut of all decimal places resulting in the integer valued rates. I've solved it by adding the following code line somewhere in the code
But probably there is a solution in not such a hacky way.
The text was updated successfully, but these errors were encountered: