Negative HEX numbers no longer working in latest builds?
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)
In MT5 Build 3091, the result of executing this line:
is this:
4294967041In MT4, it is still the same as before:
-255Why the change? Will it hold in later builds?