List of data types

The table below lists the data types for various field values along with the corresponding C and C++ data types. The field values shown under Data type in this table are shown in the Format column in the field table for each record.

Table 7-5 List of data types

Data typeSize (bytes)Explanation
FieldC and C++
char(n)char()Number inside ( )Character string having a length of n bytes
doubledouble8Numerical value (1.7E [Figure] 308 (15 digits))
floatfloat4Numerical value (3.4E [Figure] 38 (7 digits))
longlong4Numerical value (-2,147,483,648 to 2,147,483,647)
shortshort2Numerical value (-32,768 to 32,767)
string(n)char[]Number inside ( )Character string having n-byte length. The last character is null.
time_tunsigned long4Numerical value (0 to 4,294,967,295)
timevalstruct8Numerical value (the first 4 bytes indicate seconds, and the next 4 bytes indicate microseconds.)
ulongunsigned long4Numerical value (0 to 4,294,967,295)
utimestruct8Numerical value (the first 4 bytes indicate seconds, and the next 4 bytes indicate microseconds.)
wordunsigned short2Numerical value (0 to 65,535)
(Not applicable)unsigned char1Numerical value (0 to 255)