Operation "More than"

 

Hi there,

I encounter this dilemma on doing a "more than" comparison. FYI I'm having a 5 digit broker.

I would assume 1.14644 > 1.14644 would fail, as there are the same values. However, the result shows TRUE instead.

Can anyone clarify that ">" is actually more than?

 

Yes it is more than.

void OnStart()
  {
//---
    Alert(1.14644 > 1.14644);
  }

Above is my code in a script. It returns false.

What is your code to test that it shows TRUE?

 
Jia Soo:

Hi there,

I encounter this dilemma on doing a "more than" comparison. FYI I'm having a 5 digit broker.

I would assume 1.14644 > 1.14644 would fail, as there are the same values. However, the result shows TRUE instead.

Can anyone clarify that ">" is actually more than?

probably you are not counting on further decimals hidden. Use  NormalizeDouble