for ix in [20000000.0, 200000000.0, 2000000000.0, 20000000000.0, 
    200000000000.0, 2000000000000.0]:
    print('{:.3e} => {:0=8.3f}e9'.format(ix, ix / 1000000000.0))
Python - fixed exponent in scientific notation?