Gentee Programming Language > Documentation > Syntax Download documentation

Data Type Conversion

By default, data are converted from one type to another, as follows: sbyte, short to int and byte, ushort to uint; otherwise an explicit data type conversion is required. For an expression of the type to be converted to another type, it is necessary to specify a type name, to which data will be converted, and the expression enclosed in parentheses; moreover, the conversion will occur if the specified source type has the appropriate method.

str a = "10"
uint b

b = uint( a )    //b=10

See also

    Table Of Operator Precedence    Table of Type Conversions


 Copyright © 2004-2006 Gentee Inc. All rights reserved.