This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

Point in 5 decimal enviroment


Back to topics list
avatar
1
Gosha 2009.12.22 05:51 

Hello


Could somebody advice why "Point" return 0 in case of 5 decimals for example EUR/USD 1.42900, Point suppose return 0.00001, but it returns 0

Please advise


Regards

Gosha

avatar
80
cloudbreaker 2010.01.02 14:59 

The reason you see this is that the Print, Alert and Comment functions return 4 decimal places of precision by default.

Try the following:

Print(NormalizeDouble(Point,5));


CB

Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets