Data types and formats
Data takes different formats as it is created and manipulated in the data logger, as it is displayed through software, and as it is retrieved to a computer file. It is important to understand the different data types, formats and ranges, and where they are used.
See the CRBasic Editor help for additional data types and formats, and program examples:
Data type |
Description |
Range |
Resolution |
Where used |
---|---|---|---|---|
Float | IEEE four-byte floating point |
+/–1.8 *10^–38 to |
24 bits (about 7 digits) |
variables |
Long | four-byte signed integer |
–2,147,483,648 to +2,147,483,647 |
1 bit | variables, output |
Boolean | four-byte signed integer |
–1, 0 | True (–1) or False ( 0) |
variables, sample output |
String | ASCII String | variables, sample output |
||
IEEE4 | IEEE four-byte floating point |
+/–1.8 *10^–38 to |
24 bits (about 7 digits) |
internal calculations, output |
IEEE8 | IEEE eight-byte floating point |
+/–2.23 *10^–308 to |
53 bits (about 16 digits) |
internal calculations, output |
FP2 | Campbell Scientific two-byte floating point |
–7999 to +7999 | 13 bits (about 4 digits) |
output |
NSEC | eight-byte time stamp | nanoseconds | variables, output |