private void numberSimplify() {
        int prime = 2;
        while ((prime <= numerator) || (prime <= denominator)) {
            if (((numerator % prime) == 0) && (denominator % prime) == 0) {
                numerator = numerator / prime;
                denominator = denominator / prime;
            } else {
                prime = getNextPrime(prime);
            }
        }
    }