What is there to try? It's pretty clear. The subtraction result is non-normalised, so there will be surprises sometimes if you don't normalise to two digits.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Well and wrong.
Subtract, normalise to two digits and then to one.
So try it :)
So try it :)
Which one do you need?
you need to knowthe length of the string? - Are you sure you have the right branches?
Code?
If it's more than 2 lines like mine, then your code is more complicated.
Code?
If it's more than 2 lines like mine, then your code is more complicated.
You're not reading your posts carefully.
I gave you the code - it has one line.
You are not reading the posts carefully.
I gave you the code - it has one line in it.
+++
However, if a number is longer than 15 decimal places, it must still be truncated somehow, otherwise it won't work properly.
So try it :)
Vasyl Nosal:
It's wrong with zero and with negative numbers. With positive ones, surprisingly, without surprises, it's correct.
Negative ones should be added to (if Normalize increases modulo when rounding).
And probably do nothing with zero.
If applied to a quote - its probability to become <= 0 is small... :)