CLOSED-INTERVAL-BINARY64 is a Value that represents a closed interval by two IEEE 754 binary64 endpoints in the order (lower, upper). It is Value VALUE-ISSUER-2WORD (0x09DL), Issuer 0x00000002 ADHOC, codec number 0x00000703, family NUMERIC.

Layout

TAG WORD          0x09DC (0000 1001 1101 1100)  13 WORD in total
Issuer            2 WORD  0x00000002 (ADHOC)
Codec number      2 WORD  0x00000703
Payload           [lower binary64: 4 WORD][upper binary64: 4 WORD]

Interpretation and validity

  • The two endpoints are binary64 in big-endian WORD order, and both ends are included.
  • The signed zero bit pattern of a valid endpoint is preserved as is. There is no ABI padding.
  • The Payload is exactly 8 WORD, and lower ≤ upper must hold.
  • NaN cannot be compared, so it is rejected. An infinity endpoint makes the interval unbounded, so it is also rejected.
  • Empty, unbounded, and open intervals and NaI cannot be represented by this format and are rejected.

Standards basis and formal status

  • The endpoint numeric format follows IEEE 754 binary64, and the meaning of a closed endpoint pair refers to the interval model of IEEE 1788, Standard for Interval Arithmetic and its simplified flavor IEEE 1788.1-2017.
  • This format is a simple GEUL profile that allows only finite, non-empty closed intervals. It does not implement or serialize as is decorations, NaI, empty/unbounded intervals, or the full operation and interchange model of IEEE 1788/1788.1.

Length

  • The total is exactly 13 WORD: TAG 1 WORD, Issuer 2 WORD, codec number 2 WORD, and Payload 8 WORD, and it uses the direct length LLLL=1100. There is no Length extension TAG, no descriptor, and no padding.
  • If the Payload is not exactly 8 WORD, it is rejected.

Example

  • The endpoints (1.0, 2.0) give [1.0, 2.0] and are valid. (2.0, 1.0) and (NaN, 1.0) are invalid.