From 44a6a85dbbe51a3e16521be262fba5a291d3c7cf Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 15 Sep 2009 23:05:48 -0400 Subject: [PATCH] Added the is_negative_float() method to the StringUtils module. --- src/StringUtils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/StringUtils.py b/src/StringUtils.py index dcb16c1..96e07ea 100644 --- a/src/StringUtils.py +++ b/src/StringUtils.py @@ -12,3 +12,7 @@ def is_float(s): return True except: return False + + +def is_negative_float(s): + return (is_float(s) and (float(s) < 0.0)) -- 2.44.2