Defining the number of afterdigits?
Forums › ProRealTime English forum › ProScreener support › Defining the number of afterdigits?
- This topic has 7 replies, 3 voices, and was last updated 1 year ago by jbrahms10.
-
-
10/13/2023 at 5:47 PM #222398
Hello,
I would like to have a predefined number of decimal places for numbers in the screener, e.g. always two. The command I know i.e. “NUMBERFORMAT”, is helping to understand numbers, but the command does not include formating afterdigits.
Does anyone know a better way of formatting real numbers?
Thanks
10/13/2023 at 6:02 PM #22239910/13/2023 at 7:44 PM #22240310/13/2023 at 7:56 PM #22240410/13/2023 at 8:04 PM #222405This is a very simple code, here you suggest the result will have the number of the digits defined i.e. in this case 2. The number I apply in brackets doesn’t change anything at all.
IncreaseCalc = Close/lowest[10]
Increase = Round(IncreaseCalc, 2)
SCREENER(Increase as “Increase with 2 afterdigits”)Any idea why / how?
Thank you
10/13/2023 at 8:36 PM #222407Hi,
What the command does is: the second digit is rounded, so what you are left with is a number with up to two significant digits where all subsequent digits are equal to zero…
The same thing happens with the number in your example, you’re left with a number with two significant digits… (the rest is equal to zero)
10/14/2023 at 5:17 AM #222416Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums.
Thanks 🙂
10/14/2023 at 9:23 AM #222424 -
AuthorPosts
Find exclusive trading pro-tools on