• This export function returns percentage of a number in a given range.

    RangeToPercent(40,20,60) will return 0.5 (50%) RangeToPercent(34,0,100) will return 0.34 (34%)

    Returns

    the percentage

    Parameters

    • num: number

      to convert to percentage

    • min: number

      min range

    • max: number

      max range

    Returns number