@Override
	public int compareTo(MyNumber o) {
		double a = getDoubleFromMyNumber(base);
		double b = getDoubleFromMyNumber(exponent);
		double power = Math.pow(a, b);
		
		if(o instanceof MyInteger) {
			int num = ((MyInteger)o).getIntegerValue();
			if(power > num) 
				return 1;
			else if(power == num)
				return 0;
			else
				return -1;
		} else if(o instanceof MyFloat) {
			double num = ((MyFloat)o).getDoubleValue();
			if(power > num)
				return 1;
			else if(power == num)
				return 0;
			else
				return -1;
		} else
			return 0;
	}