Convert float to string in positional format (without scientific notation and false precision)
Unfortunately it seems that not even the new-style formatting with float.__format__ supports this. The default formatting of floats is the same as with repr; and with f flag there are 6 fractional digits by default: >>> format(0.0000000005, ‘f’) ‘0.000000’ However there is a hack to get the desired result – not the fastest one, but … Read more