mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-03 00:18:20 +00:00
Forgot to truncate llSqrt to F32.
This commit is contained in:
parent
bfabcd16db
commit
e35431cecf
1 changed files with 1 additions and 1 deletions
|
@ -1515,7 +1515,7 @@ def llSqrt(f):
|
||||||
if f < 0.0:
|
if f < 0.0:
|
||||||
return NaN
|
return NaN
|
||||||
# LSL and Python both produce -0.0 when the input is -0.0.
|
# 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):
|
def llStringLength(s):
|
||||||
assert isstring(s)
|
assert isstring(s)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue