Announcement

Collapse
No announcement yet.

How to fix decimals?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to fix decimals?

    Hi!

    I have a slight problem. When I calculate RSI, it gives me a large number after the main value. Does anyone know how to correct this?

    (See Example)



    I would appreciate any tips!
    Tnahk you!

  • #2
    Maxus
    Add a .toFixed(n) at the end of your RSI variable where n is the number of decimals.
    For example vRSI.toFixed(2) will display only two decimals.
    Alex

    Comment

    Working...
    X