PureBytes Links
Trading Reference Links
|
Does anyone know how to solve the problem of "Overflow in Mul()
Function".
Overflow occurs in W1 as shown below,
P1:=DR*((T1>0)-(T1<0));
W1:=If(P1=0,If(PREV=0,1000,PREV),SM*PREV+(1-SM)*PREV*(1+PC)*P1);
but the problem disappears in W1 as shown below,
W1:=If(P1=0,If(PREV=0,1000,PREV),SM*PREV+(1-SM)*PREV);
Does anyone have any suggestion on how to handle this limitation?
Thank you
Eric
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/zMEolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|