solarnetwork-api-core
    Preparing search index...

    Function displayScaleForValue

    • Get an appropriate multiplier value for scaling a given value to a more display-friendly form.

      This will return values suitable for passing to Util.Numbers.displayUnitsForScale.

      Parameters

      • value: number

        the value to get a display scale factor for, for example the maximum value in a range of values

      Returns number

      the display scale factor