[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Division By Zero?



PureBytes Links

Trading Reference Links

I use SuperCharts.  But I think this may work,

((C-Ref(C,-pd))/(Ref(C,-pd)+0.0000001))*100;

Augie


Nicholas Kormanik wrote:

> I'm getting a division-by-zero error on the following formula.  Can anyone
> suggest an efficient way of avoiding this error?
>
> ROC 7-day:
>
> Pd:=7;
> ((C-Ref(C,-pd))/(Ref(C,-pd)))*100;
>
> Thanks,
> Nicholas