omg read the effing thread before posting your responses. How many comments about Normalize when it has been demonstrated in several posts that it does not fix the op's issue.
I often use the int method demonstrated by @Dominik Egert.
double num = 0.004499807884787987;
//How do you decide how many values we need after decimel? I assume by Pip value. Sodouble pip = _Point*10;
num = num/pip;
num = (int)num;
num = num*pip;
MT4:NormalizeDouble - General - MQL5 programming forum #3.3 (2017.01.04)
How to Normalize - Expert Advisors and Automated Trading - MQL5 programming forum #2 (2017.05.19)
Use this NormalizeDouble( (0.004499807884787987),4);
omg read the effing thread before posting your responses. How many comments about Normalize when it has been demonstrated in several posts that it does not fix the op's issue.
I often use the int method demonstrated by @Dominik Egert.
sorry, @CHARLESS11 ND would change 0.00449 to 0.0045. Not what OP asked for.
I have this value 0.004499807884787987
I want only 0.0044
what math function should use
thanks
Try something like this