/** * Calculates the input by +,-,*,/,%,^ with priority to + and - * * @param string $string Input string, eg "123 + 456 / 789 - 4" * @return integer Calculated value. Or error string. * @see calcParenthesis() * @deprecated since TYPO3 4.6, will be removed in TYPO3 6.0 - Use t3lib_utility_Math::calculateWithPriorityToAdditionAndSubtraction() instead */ public static function calcPriority($string) { return t3lib_utility_Math::calculateWithPriorityToAdditionAndSubtraction($string); }
/** * Calculates the input by +,-,*,/,%,^ with priority to + and - * * @param string $string Input string, eg "123 + 456 / 789 - 4" * @return integer Calculated value. Or error string. * @see calcParenthesis() * @deprecated since TYPO3 4.6, will be removed in TYPO3 4.8 - Use t3lib_utility_Math::calculateWithPriorityToAdditionAndSubtraction() instead */ public static function calcPriority($string) { self::logDeprecatedFunction(); return t3lib_utility_Math::calculateWithPriorityToAdditionAndSubtraction($string); }