Strings, doubles and sums
-
Hello, i found something rather weird when trying to apply consecutive sums:
Sometimes, they will be shown as infinite decimals (the 7's, 8's, 9's and 1's only). Have not found a way around this yet, somebody got a hint or a way to work around this? I know i can use the Int class, but it won't allow me to use any kind of decimal count.

-
-
Take a look at the documentation about NormalizeDouble - https://www.mql5.com/en/docs/convert/normalizedouble
What they say is this:
Please note that when output to Journal using the Print() function, a normalized number may contain a greater number of decimal places than you expect.
There is no guarantee about these numbers. I tried everything, but still sometimes numbers appear long, even after NormalizeDouble or DoubleToString.
-
@fxdreema Thank you sir, let's see if i can find a way around it.
