MathScript code works with the following input data types: integer, real, complex, Boolean, and character array.
MathScript determines the data types of output variables at edit time. The data type is the smallest data type that encompasses all possible values of the variable. For example, if the value of a variable is the square root of a number, MathScript determines that the data type is complex double-precision, floating-point numeric even though the value might be an integer data type.
If you change the data type of a variable manually, MathScript coerces the value to the data type you selected, if possible. MathScript returns an error when the coercion is not possible.