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 5f506b2 commit 6933973Copy full SHA for 6933973
1 file changed
control/xferfcn.py
@@ -75,8 +75,8 @@
75
}
76
77
def _float2str(value):
78
- formatter = "{:" + config.defaults.get('xferfcn.floating_point_format', ':.4g') + "}"
79
- return formatter.format(value)
+ _num_format = config.defaults.get('xferfcn.floating_point_format', ':.4g')
+ return f"{value:{_num_format}}"
80
81
82
class TransferFunction(LTI):
0 commit comments