AnsweredAssumed Answered

Can someone share how to convert a string to an integer in either groovy or javascript?

Question asked by jasonarnold2721 on May 6, 2014
Latest reply on May 6, 2014 by Adam Arrowsmith
I need to perform a calculation on 2 numbers one of which has a "-" forcing me to call it a string in the profile. I believe I need to create a function that will first trim the "-" then convert it to an integer then perfom the calcuation. Please let me know if I am on the right track and if so, how to perform the conversion step. Im thinking I need a script step but am very weak at javascript or groovy.