I have the following codes:-
BP1 = Close[1]-Math.Min(Low[1],Close[2]);
BP2 = Close[2]-Math.Min(Low[2],Close[3]);
and the following output derived from the above codes:-
Close[1] is0.9581
TrueLow is0.9563
BP1 is0.00179999999999991
Close[2] is0.965
TrueLow is0.9632
BP2 is0.00180000000000002
1. Why am I getting solutions to the 17th decimal?
2. BP1 should equal BP2 but in the above, it isn't. How can I resolve this problem so that they will reflect as being equal.
BP1 and BP2 are double values.
Regards
Kay Wai
Comment