NormalizeDouble issue

 

Have this code:

Print("Profit target: ",NormalizeDouble(AccountBalance()*((CloseProfit/100)*OrdersTotal()),2));

But in the experts tab it prints: "2019.04.24 11:35:41.370 CloseAgent XAUUSD,H1: Profit target: 641.8099999999999".

Please help.

 
David Diez:

Have this code:

But in the experts tab it prints: "2019.04.24 11:35:41.370 CloseAgent XAUUSD,H1: Profit target: 641.8099999999999".

Please help.

DoubleToStrMorePrecision(AccountBalance()*((CloseProfit/100)*OrdersTotal()),2))
 
Genesis Hafalla:
DoubleToStrMorePrecision(AccountBalance()*((CloseProfit/100)*OrdersTotal()),2))
Worked, thanks.
Reason: