Zakarya Khezri: The problem is the returned value is not exact and has less digits after decimal point,
Floating-point has an infinite number of decimals, it's your not understanding floating-point and that some numbers can't be represented exactly. (like 1/10.)
Double-precision floating-point format - Wikipedia, the free encyclopedia
See also The == operand. - MQL4 programming forum 2013.06.07
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.05.18
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
I'm trying to get value of a trendline, this is my trendline:
then I want to get the price value of it like this:
The problem is the returned value is not exact and has less digits after decimal point,for example:
actual value must be 1.12345 but returned value is 1.1234
"My broker is 5 digit"