We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e4e926e + 9bd8364 commit 147047eCopy full SHA for 147047e
hls4ml/model/types.py
@@ -564,7 +564,7 @@ def update_precision(self, new_precision):
564
# to right of decimal point
565
lsb = 2**-new_precision.fractional
566
decimal_spaces = len(str(lsb).split('.')[1])
567
- self.precision_fmt = f'{{:{decimal_spaces}f}}'
+ self.precision_fmt = f'{{:.{decimal_spaces}f}}'
568
else:
569
self.precision_fmt = '{:.0f}'
570
0 commit comments