
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
To compare 1.36 with 1.36 i need to use
if(CompareDoubles(x , y)){
// the same
}
But how to compare like this ?
if ( 1.36 >= 1.36 ){
?
Does this bug with compare doubles are only with == ? or with > < too ?
thanks
the only correct way in my mind is:
if(CompareDoubles(x , y) || x > y){ // correct ?
Or the more simply method is this:
if(NormalizeDouble(x, 5) >= NormalizeDouble(y, 5)){
// i think this method is the correct way to compare dubles, yes ?
}