Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kif authored Sep 12, 2024
1 parent 01adae2 commit 4d459a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyFAI/utils/stringutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def to_eng(value, fmt=None, space=""):
return ffmt.format(value=value, space=space, pfix=pfix, fmt=fmt)
else:
string = f"{value:f}"
if "." in str:
if "." in string:
string = string.rstrip("0")
string = string.rstrip(".")
return string + space + pfix

0 comments on commit 4d459a5

Please sign in to comment.