Numbers - Orbifold/XAct GitHub Wiki
Contains number-related functions and utilities.
- IsEven: returns whether the given number is even
- IsOdd: returns whether the given number is odd
- IsPowerOfTwo: returns whether the given number is a power of two
- CeilingToPowerOfTwo: returns the nearest power of two bigger than the given number
- GreatestCommonDivisor: returns the greatest common divisor
- LeastCommonMultiple: returns the least common multiple
- Truncate: drops the digits of the given number
- AlmostEqual: returns whether the given numbers are equal, up to the given precision and within an epsilon boundary