I’m trying to use Math.trunc in a UE script, and I...
# suitescript
t
I’m trying to use Math.trunc in a UE script, and I’m getting this error message: org.mozilla.javascript.EcmaError: TypeError: Cannot find function trunc in object [object Math]. Any idea why this would be happening?
m
It isn’t implemented in the Rhino JavaScript environment
e
probably you might be using SS 2.1 in order to use that method
j
Yes you need SS 2.1 to gain access to Math.trunc
t
Interesting, good to know. Thanks everyone!