2 decimal places
-
I have noticed when displaying data on screen using "Comment" & "Draw Text" blocks that often numbers display to 12 decimal places. In my opinion 3 is enough to show you have a sense of humour & 2 is what I am after.
I have tried using NormalizeDouble on numbers I am generating but what about system generated values ?
For example (attached) this is the Account / Margin Level (in %). It shows 12 decimals. Can the system be made to restrict it to 2 or do I need to place it in a new variable & amend it (seems a bit wasteful).
This also seems to happen when generating values from Buckets.
Many thanks.

-
I'm aware of this problem and I tried to minimize it, but it looks that it just happens, even if you are using all the functions that are supposed to fix it. Take a look at their documentation: https://www.mql5.com/en/docs/convert/normalizedouble
Please note that when output to Journal using the Print() function, a normalized number may contain a greater number of decimal places than you expect.
-
OK thanks, it's not material, just aesthetic !