public static function subtract($amountA, $amountB)
    {
        $precision = (int)self::config()->get('precision');
        if (function_exists('bcsub') && self::config()->get('useBcMath')) {
            return bcsub($amountA, $amountB, $precision);
        }

        return self::formatFloat((double)$amountA - (double)$amountB, $precision);
    }