declare RunMu number; Lmand number; N number; begin Lmand:=0; if lmand=0 then select round(power(multiply(anindex),1/count(*)),5) into RunMu from tp_analyseindex; else select Lmand * power(multiply(anindex),(Lmand-1)/count(*)) into RunMu from tp_analyseindex; end if; dbms_output.put_line(RunMu); end;以上是我写的, 其中:multiply为连乘函数,我已经写好了, 总是提示我数字溢出
RunMu number;
Lmand number;
N number;
begin
Lmand:=0;
if lmand=0 then
select round(power(multiply(anindex),1/count(*)),5) into RunMu from tp_analyseindex;
else
select Lmand * power(multiply(anindex),(Lmand-1)/count(*)) into RunMu from tp_analyseindex;
end if;
dbms_output.put_line(RunMu);
end;以上是我写的,
其中:multiply为连乘函数,我已经写好了, 总是提示我数字溢出
我是要做BOX-COX转换,而计算过程需要用到联乘,一个上千条记录的表,做联乘计算,要远比那个POWER(10,125) 大得多.
所以,我要的不是精度,而类型.