public double getMaximumDifference_as_double(){
        double diff = 0.0D;
        if(this.type==0 || this.type==1){
            double max = this.getMaximum_as_double();
            double min = this.getMinimum_as_double();
            diff = max - min;
        }
        else{
            throw new IllegalArgumentException("Maximum difference may only be returned as the same type as the type of the internal array - you are trying to return as double or Double the difference for a " + this.typeName[this.type] +"[] array");
        }
        return diff;
    }