Announcement

Collapse
No announcement yet.

printing values to screen

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

  • printing values to screen

    when printing a value to the screen/chart using drawTextRelative, is there any way to limit the number of decimal points?

    Thanks

  • #2
    flexie
    You can use either the .toFixed(n) method where n is the number of decimals you want to show or you can use formatPriceNumber(your_value)
    Alex

    Comment


    • #3
      ah yes, found a previous post on decimals. Did the search for "toFixed" ... added the code ... works great.... man I love .efs.

      Thanks
      Alexis

      Comment


      • #4
        flexie
        You are most welcome
        Alex

        Comment

        Working...
        X