List of data types

The table below lists the data types for field values and the corresponding C and C++ data types. The values shown in the Format column of the record field tables are those shown below in the Field column under Data type.

Table 9-5 List of data types

Data typeSize
(bytes)
Description
FieldC and C++
char(n)char( )Number inside ( )Character data (0x20 to 0x7e) Character string having a length of n bytes
doubledouble8Numeric value (1.7E[Figure]308 (15 digits))
floatfloat4Numeric value (3.4E[Figure]38 (7 digits))
longlong4Numeric value (-2,147,483,648 to 2,147,483,647)
shortshort2Numeric value (-32,768 to 32,767)
string(n)char[ ]Value in parenthesesCharacter string with a length of n bytes. The last character is null.
time_tunsigned long4Numeric value (0 to 4,294,967,295)
timevalStructure8Numeric value (first 4 bytes are seconds, next 4 bytes are microseconds)
ulongunsigned long4Numeric value (0 to 4,294,967,295)
utimeStructure8Numeric value (first 4 bytes are seconds, next 4 bytes are microseconds)
wordunsigned short2Numeric value (0 to 65,535)
(Not applicable)unsigned char1Numeric value (0 to 255)