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);
    }