Hello,
Not sure if this is the right area but i'm writing code in mql5 and trying to get 4 decimal places for a variable but i must be doing something wrong. Not sure if anyone can help?
//numA is a number like 78.244424242
double numA = NormalizeDouble(m_LastSwingPoints[3].swingValue, Digits() - 1);
double numAshort = NormalizeDouble(numA,4);
I'm trying to get the output to be 4 decimal places 78.2444 when i print numAshort
Not sure if this is the right area but i'm writing code in mql5 and trying to get 4 decimal places for a variable but i must be doing something wrong. Not sure if anyone can help?
//numA is a number like 78.244424242
double numA = NormalizeDouble(m_LastSwingPoints[3].swingValue, Digits() - 1);
double numAshort = NormalizeDouble(numA,4);
I'm trying to get the output to be 4 decimal places 78.2444 when i print numAshort