diff options
-rw-r--r-- | lib/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils.py b/lib/utils.py index f54fb99..d8df9cd 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -14,11 +14,11 @@ def vprint(verbose, string): print(string) def is_numeric(n): - """Check if `n` is numeric (i.e., it can be converted to int).""" + """Check if `n` is numeric (i.e., it can be converted to float).""" if n == None: return False try: - int(n) + float(n) return True except ValueError: return False |