It depends, what's your goal ?
angevoyageur:
Záleží na tom, jaký je váš cíl?
My script return value, but this value can have whatever decimal place. I need some decimal places as have symbol().
Záleží na tom, jaký je váš cíl?

Documentation on MQL5: Conversion Functions / NormalizeDouble
- www.mql5.com
Conversion Functions / NormalizeDouble - Reference on algorithmic/automated trading language for MetaTrader 5
Slavin12:
My script return value, but this value can have whatever decimal place. I need some decimal places as have symbol().
My script return value, but this value can have whatever decimal place. I need some decimal places as have symbol().
If it's an output issue, you can either use :
Print("Value = ",DoubleToString(value,5);or
printf("My value is %.5f",value);

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
Hello,
how I round number to 5 decimals places?
Thank