-
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 encyclopediaSee also The == operand. - MQL4 programming forum
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 -
NormalizeDouble does not return a string.
Output: 80.19799999999999
Caught this by coincidence. I have tried all sorts of conversions, NormalizeDouble (string to double to string). so on and so forth. But still, it beats me to understand why this is happening.
Appreciate any help.
Thanks.