0) { $op1 = self::round($op1, $op3); $op2 = self::round($op2, $op3); } else { $op1 = ($op1 > 0) ? floor($op1) : ceil($op1); $op2 = ($op2 > 0) ? floor($op2) : ceil($op2); } if ($op1 > $op2) { return 1; } else if ($op1 < $op2) { return -1; } return 0; } public static function Scale($op1) { if ($op1 > 9) { require_once 'Zend/Locale/Math/Exception.php'; throw new Zend_Locale_Math_Exception("can not scale to precision $op1", $op1, null, null); } self::$_scale = $op1; return true; } } Zend_Locale_Math_PhpMath::disable(); // disable use of bcmath functions