PureBytes Links
Trading Reference Links
|
It is a kind of a workaround :
(and changed the formula's arrangement only)
Pd:=7;
RATEOC:=(100*(C-Ref(C,-pd)))/(Ref(C,-pd));
RATEOC
Regards,
Ton Maas
ms-irb@xxxxxxxxxxxxx
Dismiss the ".nospam" bit (including the dot) when replying.
----- Original Message -----
From: Nicholas Kormanik <nkormanik@xxxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: maandag 17 mei 1999 2:07
Subject: Division By Zero?
> 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
>
>
|