Defining the number of afterdigits?

Forums ProRealTime English forum ProScreener support Defining the number of afterdigits?

Viewing 8 posts - 1 through 8 (of 8 total)
  • #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

    #222399
    JS

    Hi,

    You can use “Round(a, digits)”…

    When you use two for “digits”, there are always two decimal places…

    #222403

    Nope. That doesn’t work.

    #222404
    JS

    Hi,

    Thanks for your polite and informative response…

    What doesn’t work for you?

    #222405

     

    This 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

     

    #222407
    JS

    Hi,

    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)

    #222416

    @jbrahms10

    Do 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 🙂

     

    #222424

    Thanks @ JS for clarifying.

    All good now.

     

    1 user thanked author for this post.
    avatar JS
Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login