- Errors, bugs, questions
- From theory to practice
- Indicators: Past Regression Deviated
Good morning,
This has been already reported.
The latest release MT5 build has a display problem with showing too many decimal digits. However, internally it is working just as before. The reason you see a "strange" rounding is because that is how floating point numbers work and it has been like that since the beginning in all other computer programs, not just MetaTrader. You did not see it before because it was showing less digits.
Do some research here on the forum and on the web about how floating point number are represented in binary.
Floating-point has an infinite number of decimals, it's you, not understanding floating-point and that some numbers can't be represented exactly. (like 1/10.)
Double-precision floating-point format - Wikipedia
See also The == operand. - MQL4 programming forum (2013)
If you want to see the correct number of digits, convert it to a string with the correct/wanted accuracy.
question about decima of marketinfo() - MQL4 programming forum (2016)
The latest release MT5 build has a display problem with showing too many decimal digits. However, internally it is working just as before. The reason you see a "strange" rounding is because that is how floating point numbers work and it has been like that since the beginning in all other computer programs, not just MetaTrader. You did not see it before because it was showing less digits.
Do some research here on the forum and on the web about how floating point number are represented in binary.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use