trying to run parseInt on 08 throws a NaN on UE sc...
# suitescript
n
trying to run parseInt on 08 throws a NaN on UE script. Runs fine on console. type of variable that has value 08 is string.
s
I don't think that's true
n
The documentation has this.
s
perhaps you mean '0X' not '08'?
n
I mean... '08'
Because parseInt('08') was throwing a NaN error. I fixed it by using parseInt('08', 10);
s
ok