Function roundTicks

Rounds a number and formats it as a string with a fixed number of decimal places.

  • Parameters

    • price: number

      The number to be formatted.

    • OptionaltickSize: number = 8

      The number of decimal places to round to.

    Returns string

    • The formatted number as a string.