![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
becausehttps://www.mql5.com/ru/docs/convert/normalizedouble
Note that the normalised number when output to the logbook using Print() may contain more decimal places than you expect. For example,
then in the comment the same
void OnStart()
{
double Price1 = 105143;
double Price2 = Price1 - 1 e-11;
Print(TOSTRING(Price1) + TOSTRING(MathFloor(Price1)) +
TOSTRING(Price2) + TOSTRING(MathFloor(Price2)) +
TOSTRING(Price1 > Price2));
}
Thank you. I must have found the right solution after all, but I was worried about a mistake because of the incorrect alignment!
The remainder of one non-normalized number divided by another non-normalized number, the result is in any case non-normalized.
This function should be removed from the language altogether, so as not to traumatize the immature psyche.
I may have found the right solution after all.
The remainder of one non-normalized number divided by another non-normalized number, the result is in any case non-normalized.
This function should be removed from the language altogether, so as not to traumatize the immature psyche.
Well, it's fine with me. That's the tricky part.
Normalize only before you use the results of your calculations directly. Avoid all number conversions and conversions as much as possible beforehand.
You are doing unnecessary conversions that cause loss of characters.
Well, it's fine with me. That's the funny thing.
It's already desperate codes..... I've done it in different ways. But as said above. Probably because of incorrectly accepted I was sinning a mistake. Although these variables were glitchy in the code as well.