private function formatNumericValue($value)
{
// If there is no dot, we return as is
// Note: this could be an integer bigger than 32 bits
if (strpos($value, '.') === false) {
if ($value === false) {
return 0;
}
return (double) $value;
}
// Round up the value with 2 decimals
// we cast the result as float because returns false when no visitors
return round((double) $value, 2);
}