Class MathExt
Provides integer mathematics helpers.
public static class MathExt
- Inheritance
-
MathExt
- Inherited Members
Methods
ToNextPowerOf2(int)
Rounds a non-negative integer up to the next power of two.
public static int ToNextPowerOf2(this int x)
Parameters
xintThe value to round.