Lavoiesl\PhpBenchmark\Util::round PHP Метод

round() публичный статический Метод

public static round ( $number, $significant )
    public static function round($number, $significant = 0)
    {
        $order = floor(log($number) / log(10));
        return round($number / pow(10, $order), $significant) * pow(10, $order);
    }