title: How can I print many significant figures in Python?
body: <p>For a scientific application I need to output very precise numbers, so I have to print 15 significant figures. There are already questions on this topic here, but they all concern with <em>truncating</em> the digits, not <em>printing more</em>.</p>
  
  <p>I realized that the <code>print</code> function converts the input <code>float</code> to a 10 character <code>string</code>. Also, I became aware of the <code>decimal</code> module, but that does not suit my needs. </p>
  
  <p>So the question is, how can I easily print a variable amount of signifcant figures of my floats, where I need to display more than 10?</p>