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.
1 parent bc6fc08 commit e56bfffCopy full SHA for e56bfff
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