This shows you the differences between two versions of the page.
functions:npo2 [2017/03/15 11:10] – created korshun | functions:npo2 [2017/04/15 17:30] (current) – korshun | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Description ===== | ===== Description ===== | ||
- | Returns x rounded up to the the Next Power Of 2. | + | Returns x rounded up to the the Next Power Of 2. The input must be positive. |
- | + | ||
- | The input must be positive. | + | |
If x is a power of 2, x is unchanged. | If x is a power of 2, x is unchanged. |