Ver originalfunction truncar($numero, $decimales = 2) { $factor = pow(10, $decimales); $result = floor($numero * $factor) / $factor; return($result);} $num = 13465.46733;echo truncar($num, 2);