else { $precision =
pow(10, -
$scale);
} if (empty($op1)) { $op1 = 0;
} $op1 = self::
normalize($op1);
$op2 = self::
normalize($op2);
$result =
$op1 +
$op2;
if (is_infinite($result) or (abs($result -
$op2 -
$op1) >
$precision)) { throw new Zend_Locale_Math_Exception("addition overflow:
$op1 +
$op2 !=
$result",
$op1,
$op2,
$result);
} return self::
round(self::
normalize($result),
$scale);
} public static function Sub($op1,
$op2,
$scale = null
) { if ($scale === null
) { $scale = Zend_Locale_Math_PhpMath::
$defaultScale;
$precision = Zend_Locale_Math_PhpMath::
$defaultPrecision;
} else {