Andriy Moraru:
In MT5 Build 3091, the result of executing this line:
is this:
In MT4, it is still the same as before:
Why the change? Will it hold in later builds?
Print(StringFormat("%i", -0xFF));
I believe this will work on both MT4 and MT5.
and the sign bit is being put at the 32 bit instead of the 64 one, so it does looks like a compiler bug.
Alexandre Borela #:
and the sign bit is being put at the 32 bit instead of the 64 one, so it does looks like a compiler bug.
I believe this will work on both MT4 and MT5.
and the sign bit is being put at the 32 bit instead of the 64 one, so it does looks like a compiler bug.
This isn't limited just to Print(). The following if-statement is also true in MT5 and false in MT4:
if (0 < -0xFF)
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
In MT5 Build 3091, the result of executing this line:
is this:
4294967041
In MT4, it is still the same as before:
-255
Why the change? Will it hold in later builds?