function cutNum($num, $precision = 2) { return floor($num) . substr(str_replace(floor($num), '', $num), 0, $precision + 1); }