Function precisionPrefix

  • Returns a suggested decimal precision for use with locale.formatPrefix given the specified numeric step and reference value.

    Parameters

    • step: number

      The step represents the minimum absolute difference between values that will be formatted. (This assumes that the values to be formatted are also multiples of step.)

    • value: number

      Reference value determines which SI prefix will be used.

    Returns number