Round decimal numbers?
-
Hello,has anyone found a way to round the decimal?

-
@fxmich78 Here you have it:
https://fxdreema.com/forum/topic/6236/how-to-roundup-numbers/3
-
@l-andorrà Thank you very much!
But i do not have anywhere variables.I just have blocks which draw prices(e.g candle size in pips ) -
The number in your picture is the profit. What profit is this? Is this the closed trades, Or the current open trades? What ever it is, put this value into a variable. Then use that variable in the code.
-
@l-andorrà Soif we want decimal places I would type "Variable=MathRound(Variable,2);"
Is this correct? Because I have been trying to use the NormaizeDouble function and I have not been successful at it.I plan to use "Variable=MathRound(Variable,Input);" because I will use the bot in different account currencies so if I own Fiat, then 2 decimal place but if the account is in crypto then I need to increase the decimal places accordingly. Is this method correct?
I tried NormalizeDouble(Variable,2); and it did not work in my code

-
@stantonhitz Honestly, I found the solution through the search engine. I remembered someone els asked for it, but I have no idea how to use it, sorry. Sadly, I'm not a programmer.
