Function prevPow

  • Find largest power-of-n less than or equal to given number.

    Parameters

    • x: number

      a number

    • n: number

      base

    Returns number

    nⁱ | nⁱ ≤ x and nⁱ > x/n

Generated using TypeDoc