Moved GetDigits to MathUtil