Function prevPow

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

    Returns

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

    Parameters

    • x: number

      a number

    • n: number

      base

    Returns number

Generated using TypeDoc