Syphon:
Hi Guys
Can anyone tell me how to round to a 2 decimal places, i know how to do it in C++ , but the round function defined in MQL5 takes just one parameter.
Probably not what you're looking for : NormalizeDouble, and please read the explanation there. Most of the time NormalizeDouble contain some 999... value after decimal points. If you don't like it and prefer to have 000... value, you should create your own NormalizeDouble function using File Functions.
BTW, see the url - I think you just create topic # 10.000 :)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi Guys
Can anyone tell me how to round to a 2 decimal places, i know how to do it in C++ , but the round function defined in MQL5 takes just one parameter.