def quantize(array,pres=0.01):
    """
    Function to reduce the decimal precision of an input array.

    Parameters
    ----------
    array : np.array
        numerical array to be quantized
        
    pres : float
        desired precision

    Returns
    -------
    np.array with quantized values
    """
    return ((pres**(-1))*array).round()*pres