private static function detect() : Calculator
    {
        if (\extension_loaded('gmp')) {
            return new Calculator\GmpCalculator();
        }

        if (\extension_loaded('bcmath')) {
            return new Calculator\BcMathCalculator();
        }

        return new Calculator\NativeCalculator();
    }
private static function detect() : Calculator
    {
        if (\extension_loaded('gmp')) {
            return new Calculator\GmpCalculator();
        }

        if (\extension_loaded('bcmath')) {
            return new Calculator\BcMathCalculator();
        }

        return new Calculator\NativeCalculator();
    }
private static function detect ( ) : Calculator { if ( \ extension_loaded ( 'gmp' ) ) { return new Calculator \ GmpCalculator ( ) ; } if ( \ extension_loaded ( 'bcmath' ) ) { return new Calculator \ BcMathCalculator ( ) ; } return new Calculator \ NativeCalculator ( ) ; }
Returns the fastest available Calculator implementation.

@codeCoverageIgnore

@return Calculator
Returns the fastest available Calculator implementation .