Next question: Is using the Infinity keyword not s...
# suitescript
a
Next question: Is using the Infinity keyword not supported in netsuite ? I am using 2.1 If I save a variable to a value of Infinity and log the variable, it displays
null
b
there are weird edge cases when working with things that dont stringify
but in general, non strings are stringified using JSON.stringify
and
JSON.stringify(Infinity) === 'null'
a
So you mean weird things happen just with the logging or is it an issue to use it altogether?
b
netsuite will stringify things that arent strings when you use logging methods
Infinity is not a string
a
👍
s
to Infinity and beyond, I always say.
😂 1
r
I have got
unexpected error
if I try to stringy certain NS objects as well
💯 2