Vital File Format #522
In the description of the "TRKINFO" (Structure for track information) on page 6, there's specified "recfmt".
I assume the storage space width expressed in bytes is the following:
FMT_FLOAT 4 bytes
FMT_DOUBLE 8 bytes
FMT_CHAR 1 byte
FMT_BYTE 1 byte
FMT_SHORT 2 bytes
FMT_WORD 2 bytes
FMT_LONG 4 bytes
FMT_DWORD 4 bytes
Is my assumption correct?
Second question, all these formats are "signed" and use 2nd complement?
Also, FMT_FLOAT and FMT_DOUBLE are specified according to IEEE 754? https://en.wikipedia.org/wiki/IEEE_754-1985
For the first question, your assumption is correct.
For the second question, FMT_FLOAT and FMT_DOUBLE follow the IEEE-754, but FMT_BYTE, FMT_WORD, and FMT_DWORD are unsigned, while other types are signed.