1 Reply Latest reply on Feb 3, 2012 6:37 AM by flexercised

    how to convert string to int


      i tried converting a string to int  and then back to String and compare with another String like this:


      if(variable1 ==null){

      parseFloat(StringUtil.trim(myVariable)).toFixed(0)).toString() == "0";




      Here, myVariable can be 0 or 0.0 or 0.000 etc...  I cannot assume it as int always,.


      Any solution?