Cicode Programming Reference > Converting and Formatting Cicode Variables > Converting Strings to Real Numbers

Converting Strings to Real Numbers

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

Using Cicode Files