def pprint(a, format_string='{0:.2f}'):
    """
    Function to pretty print a array without scientific notation and with given
    precision.
    
    Adapted from http://stackoverflow.com/a/18287838
    
    :param a: An input array.
    :param format_string: The desired precision level.
    :return: A formatted array.
    """
    
    return "[" + ", ".join(format_string.format(v,i) for i,v in enumerate(a)) + "]"