4 Replies Latest reply on May 15, 2017 12:22 PM by JanGLi

    How to convert string into integer in jython fdmee




      I want to subtract 1 year from my current year.

      This is how i am getting the year

      Qyearfull = "20" + fdmContext["PERIODNAME"][4:]


      I want to get previous year.

      I thought i could convert Qyearfull into integer and subtract 1 from it.


      This is how i tried int(Qyearfull) but getting error.

      Any idea how can i convert string into integer.