Cicode Programming Reference > Converting and Formatting Cicode Variables > Converting Strings to Integers

Converting Strings to Integers

To convert a string variable to an integer:

StringVar="50.25";
IntVar=StringVar;

The value of IntVar is set to 50. If StringVar contains any characters other than numeric characters, IntVar is set to 0.

See Also

Converting and Formatting Cicode Variables

Using Cicode Files