Format number using LaTeX notation in Python,print('\\num{{{0:.2g}}}'.format(1000000000.0))