diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index c345628..f798af2 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -1515,7 +1515,7 @@ def llSqrt(f): if f < 0.0: return NaN # LSL and Python both produce -0.0 when the input is -0.0. - return math.sqrt(f) + return F32(math.sqrt(f)) def llStringLength(s): assert isstring(s)