コード例 #1
0
ファイル: PhpMath.php プロジェクト: jorgenils/zend-framework
 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;
 }
コード例 #2
0
ファイル: PhpMath.php プロジェクト: Tony133/zf-web
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;
}