def fListToString(a_list, a_precision=3):
 from numpy import around
 s_list = ', '.join((('%g' % around(x, a_precision)).ljust((a_precision + 3)) for x in a_list))
 return ('[%s]' % s_list)

def fListToString ( a_list , a_precision = 3 ) : from numpy import around s_list = ', ' . join ( ( ( '%g' % around ( x , a_precision ) ) . ljust ( ( a_precision + 3 ) ) for x in a_list ) ) return ( '[%s]' % s_list )
returns a string representing a list of floats with a given precision .