]> gitweb.michael.orlitzky.com - dead/census-tools.git/blobdiff - src/StringUtils.py
Added the linear program solving the midatlantic region.
[dead/census-tools.git] / src / StringUtils.py
index 871f3fc7370b6b076c2c6c68194bfbf352b2906f..96e07ea12a42430b79cb7f14b9500ad9f283c42c 100644 (file)
@@ -4,4 +4,15 @@ def is_integer(s):
         return True
     except:
         return False
-    
+
+
+def is_float(s):
+    try:
+        x = float(s)
+        return True
+    except:
+        return False
+
+
+def is_negative_float(s):
+    return (is_float(s) and (float(s) < 0.0))