Improve floating-point formatting

This commit is contained in:
Victor Zverovich
2018-05-28 20:16:30 -07:00
parent 8dc2360b11
commit b60a5c5d49
4 changed files with 36 additions and 58 deletions

View File

@@ -48,3 +48,6 @@ for i, fp in enumerate(powers):
if i % 11 == 0:
print(end='\n ')
print(' {:5}'.format(fp.e), end=',')
print('\n\nMax exponent difference:',
max([x.e - powers[i - 1].e for i, x in enumerate(powers)][1:]))