How can I round a number?
-
Hi,
often fxDreema shows crazy numbers (double variables) like
0.07000000000000001
instead of just 0.07.
How can I round or cut numbers down to exactly 2 digits?
I tried it with *100 and put that sum into an int variable. Than /100 and back to another double variable. But it shows than again 0.07000000000000001. Is there any way to do what I want?
Thanks for the help!
-
Here you have it:
https://fxdreema.com/forum/topic/6236/how-to-roundup-numbers/3
-
You can use the trick with "int" conversion, but then put the variable in the Text(code input) option.
Text (code input) option must be selected.

-
@l-andorrà Hello, Thank You!
-
@miro1360 Thanks a lot. I finally get it to work.
thank you ,thank you,thank you. -
Solution
