Cicode Programming Reference > Using Variables > Declaring the Variable Data Type

Declaring the Variable Data Type

You can use variables of the following data types:

INT

Integer (32 bits)

-2,147,483,648 to 2,147,483,647

REAL

Floating point (64 bits)

-1.7E308 to 1.7E+308

with 15 digits of precision

STRING

Text string (128 bytes maximum, including null termination character)

ASCII (null terminated)

OBJECT

ActiveX control object reference (32 bits)

 

QUALITY

Represents the Citect SCADA quality (64 bits)

QUAL_GOOD, QUAL_BAD, QUAL_UNCR

TIMESTAMP

Represents the number of 100-nanosecond intervals since January 1, 1601 (64 bits)

 

If you want to specify a digital data type, use the integer type. Digital types can either be TRUE(1) or FALSE(0), as can integer types.

Note: Cicode may internally store floating point values as 64 bit to minimize rounding errors during floating point calculations.
When comparing REAL values in Cicode it is recommended you use the Round() function before doing the comparison.

See Also

Published June 2018