Link: How to print floating-point numbers

A description of how Dragon 2 (the floating point printing algorithm that Python uses) works.

It can be summarized as follows:

  1. find such that holds
  2. print the integer part of
  3. print a decimal point
  4. compute the remaining precision
  5. print the fractional part with a precision of (this prints the integer )
  6. print
  7. print as an exponent