How to present a number in octal in MQL ?
- www.mql5.com
Thanks.
What I need is the presentation of number in octal instead of output value in octal.
int x = 10;// in decimal int y = 0x10;// in hex int z = 010;// it is octal in C++ and it is equal 8 ,but it is not octal in MQL,it is still decimal in MQL printf("%o",z) --- //this is output by octal.
- The only mention of octal in the documentation is PrintFormat. So no 010.
- Does anyone use it any more? You know what octal is, convert it to hex and use that.
Language Basics / Data Types / Integer Types / Char, Short, Int and Long Types - Reference on algorithmic/automated trading language for MetaTrader 5
I hope you will not created a topic on each difference between C++ and MQL languages.
I just wished they were the same.
I just wished they were the same.
They are far from the same.
Yes but they seem to be getting closer.
Maybe i wished it was more like Python.
I mean a more modern language as it is hard to work with larger numbers on the older ones.
I want to do it in C++ , because it's fast.
vs.
I want to do it in Python, because it's easy.
Usually i end up doing it in C++ as well as in Python and i will even port it partially to Javascript.
But Python always wins even though its a magnitude of 40x slower than C since it's an interpreter language.
how similar is C++ verses MQL5? - MetaTrader 4 - General - MQL5 programming forum
Already exists.
how similar is C++ verses MQL5? - MetaTrader 4 - General - MQL5 programming forum
Thank you.