nunonuk:
Read this thread carefully, understand what a floating point number is and learn how to effectively compare double values: Can price != price ?
Hi,
I am developing a function that is driving me crazy, a simple:
RaptorUK:
Read this thread carefully, understand what a floating point number is and learn how to effectively compare double values: Can price != price ?
Read this thread carefully, understand what a floating point number is and learn how to effectively compare double values: Can price != price ?
Hi RaptorUK, I used NormalizeDouble in the past, but never understood really why, just knew that without that it wouldn't work!
Now I understand why!
Thanks for bringing light to my mind :)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I am developing a function that is driving me crazy, a simple:
if ( temp1 == temp2 )
seems not to be working.
The Original function is:
After decomposing it for debugging and testing proposes, this is the function I am now testing:
It seems that the:
if ( temp1 == temp2 )
is not working.
Please look at the results in the Tester Journal:
When the [i] is 73, valorFecho is equal to longGridPositions[i], both with value 1.23.
But as you can see from the Journal, the return is not executed, and the for circle for continues, also the
does not appear in the Journal!
Does anybody can see what am I doing wrong?
Thanks in advance