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:
- find such that holds
- print the integer part of
- print a decimal point
- compute the remaining precision
- print the fractional part with a precision of (this prints the integer )
- print as an exponent