rfw2d
    Preparing search index...

    Function roundDownPowerOfTwo

    • Round a value down to a power of two. If n is a power of two, returns n.

      Parameters

      • n: number

        Number to round from

      Returns number

      Power of two

      Only works in a 32-bit range