To convert a string variable to a real number:
StringVar="50.25";
RealVar=StringVar;
The value of RealVar is set to 50.25. If StringVar contains any characters other than numeric characters, RealVar is set to 0.
See Also
Converting and Formatting Cicode Variables