Exemple #1
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;
 }
Exemple #2
0
function Zend_Locale_Math_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);
    }
    Zend_Locale_Math_PhpMath::$_scale = $op1;
    return true;
}