Announcement

Collapse
No announcement yet.

Decimal places driving me crazy.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Decimal places driving me crazy.

    I was told that:


    var HHD = formatPriceNumber(xHHD)*1 ;

    Should adjust the decimal places appropriately rather than me specifying the number of places


    Mid = xMidPoint.toFixed(2)*1 ;

    But I get xx.yyy decimal places (sometimes) instead of xx.yy when I use formatPriceNumber for stocks.

    Am I doing something wrong or not doing something right?

    Is there a function that would return the number of decimals of an instrument? If so, then I could pass that as a parameter to toFixed().

    THANKING YOU IN ADVANCE.

  • #2
    buzzhorton
    In File-> Preferences check that Show Full Price Precision is disabled
    Alex

    Comment


    • #3
      That did the trick!

      Thank you!!

      I really appreciate you taking the time to help.
      Attached Files

      Comment

      Working...
      X