Implement normalization and simplify power table

This commit is contained in:
Victor Zverovich
2018-05-27 08:04:30 -07:00
parent 6a5bb6e268
commit 2f257b7291
4 changed files with 90 additions and 52 deletions

View File

@@ -39,9 +39,9 @@ for i, exp in enumerate(range(min_exponent, max_exponent + 1, step)):
print('Significands:', end='')
for i, fp in enumerate(powers):
if i % 3 == 0:
if i % 4 == 0:
print(end='\n ')
print(' {:0<#16x}ull'.format(fp.f, ), end=',')
print(' {:0<#16x}'.format(fp.f, ), end=',')
print('\n\nExponents:', end='')
for i, fp in enumerate(powers):