public void setBase(final String line) {
		int n = 0;
		int d = 0;
		boolean readN = true;
		for (final char c : line.toCharArray()) {
			if (c == '=') {
				break;
			} else if (c == '/') {
				readN = false;
			} else if (readN) {
				n += c - '0';
			} else {
				d += c - '0';
			}
		}
		base = (double) n / d;
	}