diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index 7fddcef..650ce70 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -258,7 +258,7 @@ def zstr(s): def ff(x): """Force x to be a float""" - if type(x) == int: + if type(x) != float: x = F32(float(x)) return x