CitectVBA Programming Reference > Understanding CitectVBA Language Basics > Numbers > Numeric Data Types

Numeric Data Types

Numbers are expressed in CitectVBA in decimal format by default, and can be stored in variables of different numeric data types-integer, long, single, double, and variant-providing different levels of numeric accuracy.

For an explanation of exponential notation, see Exponential Notation.

The principal differences between single and double data types, are the significance they can represent, the storage they require, and their range. Double data type variables have a smaller range, but hold more precision and occupy more memory than single data type variables.

If precision is less of a concern than storage, consider using single for floating-point variables. Conversely, if precision is the most important criterion, use double.

Variant (variant data type) variables in CitectVBA can store numbers by storing them as integer, long, single, or double data types within the variant structure. See Variant Declaration.

See Also

Numbers