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

Re: TS7 EL Bug?



PureBytes Links

Trading Reference Links

Chris,

Very old bug.  No matter the version the bug lives.

Jimmy

Friday, June 4, 2004, 9:31:59 PM, you wrote:

CC> Anyone ever run into this?

CC> Tks,
CC> Chris
CC> ......................................................

CC> I have been baffled as to why an indicator is behaving incorrectly at
CC> certain times, and have finally figured it out. There appears to be an
CC> incompatibility between the way numbers are stored in TS7 and intportion. I
CC> have a calculated value that is an even number on the first bar of the day.
CC> 1, 2, 3, etc. What I have determined is that the calculated value that TS
CC> stores is not "2" but is 1.9999999999990905... OK, now apply intportion to
CC> this variable that is supposed to be 2 and you should get 2, but you don't,
CC> you get 1.

CC> My calc that arrives at the even #s is not difficult, I have stepped through
CC> it and found that the step that introduces the error is apparently adding an
CC> expression that equals 0 to a whole integer.

CC> OK, next I try rounding the value that is supposed to be 2 to eight decimal
CC> places....silly me...expect to get a whole number. The result of rounding is
CC> 2.000004999999... At least it is over 2 now, so intportion works.



-- 
Best regards,
 Jimmy                            mailto:jhsnowden@xxxxxxxxxxxxx