UIntExtensions
Static Class in Zigurous.Math
Declaration
public static class UIntExtensionsDescription
Extension methods for unsigned integers.
Extension Methods
| Factors | Returns the factors of the given number. |
| GetBits | Returns a subset of bits from the number. |
| HasFlag | Checks if a given flag is set in the bitmask. (mask & flag) == flag |
| HasAnyFlag | Checks if any of the given flags are set in the bitmask. (mask & flags) != 0 |
| IsEven | Checks if the number is even. n % 2 == 0 |
| IsOdd | Checks if the number is odd. n % 2 != 0 |
| IsZero | Checks if the number is zero. n == 0 |
| IsPositive | Checks if the number is positive. n > 0 |
| ToBinaryString | Converts the number to a string of binary digits. |