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
NewToSFNewToSF 

How to conver number to string and viceversa

Hi,
 
 I have a custom field number and I want to assign string variable to it. Giving me
"Illegal assignment from String to Double " error.
Are there any conversion functions provided in Apex?
 
Thanks.


Message Edited by NewToSF on 05-06-2008 08:46 AM
SuperfellSuperfell
Double d = Double.valueOf(someString);