//String to int?
string str = " 123 "; ?
int a = integer . parse int(str);
// int to String?
int b = 1; ?
string str = string . value of(b);
Extended data:
The definition of data type in data structure is a set of values and a set of operations defined on this set of values.
Variables are places where values are stored. They have names and data types. The data type of variables determines how the bits representing these values are stored in computer memory.
When you declare a variable, you can also specify its data type. All variables have data types to determine what kind of data can be stored.
Data types include primitive type, multivariate group, record unit, algebraic data type, abstract data type, reference type and function type.
References:
Data Type–Baidu Encyclopedia