[This is preliminary documentation and is subject to change.]
The IntMath type exposes the following members.Methods
| Name | Description | |
|---|---|---|
| Align16(Int32) |
Returns argument increased to the nearest number divisible by 16
| |
| Align16(Int64) |
Returns argument increased to the nearest number divisible by 16
| |
| Align8(Int32) |
Returns argument increased to the nearest number divisible by 8
| |
| Align8(Int64) |
Returns argument increased to the nearest number divisible by 8
| |
| GetAdjacentPrimeNumberLessThanOrEqualTo |
Gets adjacent prime number which is less than or equal to the specified number. Arguments less than 3 yield 2;
| |
| GetCapacityFactoredToPrime |
Increases a capacity to a prime number by the factor. Both numbers must be positive
| |
| GetPrimeCapacityOfAtLeast |
Gets the capacity of at least or larger larger than the specified number. For numbers <= 16300007 the function uses lookup table for speed
| |
| IsPrime |
Tests if the number is prime
| |
| Log | ||
| MinMax | ||
| Pow | ||
| UpperLog | ||
| UpperPow |
Fields
| Name | Description | |
|---|---|---|
| PRIME_CAPACITIES |
See Also