Announcement

Collapse
No announcement yet.

A "Decimal" function?

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

  • A "Decimal" function?

    Does anyone know of an EFS MATH function which will force a price to two (2) decimal places? I am printing out some closes (ticker AB #F - Russell index futures) whic have about 10 decimal places, and end in a no-zero digit. I use the most current eSignal 7.3
    Thanks
    George

  • #2
    George
    You can use close().toFixed(2) but in some circumstances it may not work or you can use formatPriceNumber(close())
    Alex

    Comment


    • #3
      Alexis - thanks. Are these documented somewhere? I don't see them in the EFS Reference.
      George

      Comment


      • #4
        George
        formatPriceNumber is documented in the Utility Functions of the EFS Function Reference.
        Alex

        Comment

        Working...
        X