Skip to content

Commit

Permalink
[floatsi] must try to convert args to float
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Jul 20, 2023
1 parent a14783a commit 925d75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/type_floatsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def floatsi(*args):
if not args:
return 0.0
if not isinstance(args[0], str):
return args[0]
return float(args[0])

s=args[0].strip()
for i, p in enumerate(vd.si_prefixes):
Expand Down

0 comments on commit 925d75b

Please sign in to comment.