powerOfTwoFloor

Returns the value that is the nearest power of 2 less than or equal to the given value.

Parameters

value

the reference value. The power of 2 returned is less than or equal to this value.