How to make Python format floats with certain amount of significant digits?,"print('%.6g' % (i,))"