Viffer:
The EA will will "see" the correct value regardless of print and alert. These functions truncate to 4 decimal places for display purposes only. As you say, the way around this if you want to print better precision is doubletostr.
V
V
Thanks V,
The answer was also here:
https://www.mql5.com/en/forum/122500, but thanks a million anyway.
FAC
![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,
I just finish a couple of days in hell. I was debugging a piece of code and used prints and alerts everywhere . Then I realised something very "funny":
This is what I did and the results are driving me crazy.
This is the results:
If you see in the output, Ask and normalized Ask have the same values. Only after you convert it to string you can see it. So, my questions are:
What are the real values(outside the print or alert statements) of Ask after use NormalizeDouble function? 1.2716 or 1.2716.......
So, if you use print or alert to check the results after using NormalizeDouble function you will never see it unless you convert it to string. Am I right? Is it there another way to "debug" without using print or alert? and finally, Will this happens with any other function in MT4 or just in print or alert statements?
Thanks.
FAC in Orlando, FL