+ Start a Discussion
RoyalRoyal 

how to convert string value into percentage in apex ?

how to convert string value into percentage in apex ?

 
Kevin CrossKevin Cross
Are you trying to convert a string like "0.75" into a number?  It would be something like Double.valueOf(your_string) or Decimal.valueOf(your_string).  If it is stored as whole number, you could convert it then divide by 100 to do math on it.