function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.