public BigDecimal median_as_BigDecimal() {
		BigDecimal median = BigDecimal.ZERO;
		switch (type) {
		case 1:
		case 12:
			BigDecimal[] bd = this.getArray_as_BigDecimal();
			median = Stat.median(bd);
			bd = null;
			break;
		case 14:
			throw new IllegalArgumentException("Complex median value not supported");
		default:
			throw new IllegalArgumentException("This type number, " + type + ", should not be possible here!!!!");
		}
		return median;
	}