Oh whoops. Sorry - apparently I didn't read your question carefully enough. Not sure how to solve the precision problem.
Paul ________________________________ From: Herman <[email protected]> To: bistrader <[email protected]> Sent: Mon, July 19, 2010 3:19:01 PM Subject: Re: [amibroker] Why does adding 10000 to PositionScore cause problems? You are exceeding the 7-digit precision (32 bits?) of AmiBroker. herman > I have an afl with PositionScore at 77.904854 for one > ticker. PositionScore also has negative values for > certain tickers for certain dates. So, I add 10000 to > PositionScore as I want all PositionScore values to be > positive. I do so as followings and notice that 77.904854 > changes to 10077.90527. Happens to many tickers. Not > what I expected. I expected values to increase by exactly 10000. > PositionScore = rank; // 77.904854 is one value observed > PositionScaore = PositionScore + 10000; // expect to get > 10077.904854 but get 10077.90527 > I know I am missing something with precision. I looked > in help but could not find anything to help. Does anyone > know what is going on and where in documentation? > Thanks. > ------------ --------- --------- ------ > **** IMPORTANT PLEASE READ **** > This group is for the discussion between users only. > This is *NOT* technical support channel. > TO GET TECHNICAL SUPPORT send an e-mail directly to > SUPPORT {at} amibroker.com > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at > http://www.amibroke r.com/feedback/ > (submissions sent via other channels won't be considered) > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroke r.com/devlog/ > Yahoo! Groups Links
