Print outputs numbers with precision 4 digits by default. see https://docs.mql4.com/common/Print
stringo wrote:
Print outputs numbers with precision 4 digits by default. see https://docs.mql4.com/common/Print
Print outputs numbers with precision 4 digits by default. see https://docs.mql4.com/common/Print
Okay. Then you should update the doc for NormalizeDouble() and not include and
example which tries to set the precision to 5 digits on a Print() function. Right?
Regardless, I'm seeing Print() output > 4 digits on other routines even with precision set at 4. So, the confusion only runs deeper...
Yes we'll change description
![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
The example above is taken from the description of NormalizeDouble in the docs. Two problems with this.
1. The output is NOT 0.12346 as indicated but rather 0.1235.
2. Changing the precision value does NOT work on anything >4.