public static int getDigit(int a, int power, int radix) { return (int) (a / Math.pow(radix, power)) % radix; }