ItemValue
NameBINARY-FLOAT (spec document BIND BINARY-FLOAT)
TAG ID0x063L
Codec ID0x00000630
Spec document0x00000000/codecs/0x00000630/ (DECLARE target 0630)
Section3 0011 (Value), offset C within the section = 3
KindValue · family: NUMERIC
TAG WORD0000 0110 0011 LLLL (000K KKKC CCCC LLLL)
Index descriptionIEEE 754 binary16/32/64/128 scalar with a Payload of 1/2/4/8 WORD
Hugo sidevalue/numeric/binary-float.md

Fields (spec document)

The order of FIELDs in the document is the order of the Payload fields (Codec spec document).

OrderField (BIND)FIELDWidthReceiving format (CODEC)ENUM
1ieee-binary#2remaining raw value (0xFFFF)

BINARY-FLOAT is a Value that represents an IEEE 754 binary interchange scalar. Its direct Value code is 0x063L, family NUMERIC. A Payload of 1/2/4/8 WORD is binary16/32/64/128 respectively. The interchange bit string is preserved as is, and no other Payload size is allowed.

Layout

TAG WORD          0000 0110 0011 LLLL      Codec 0x063L
[Length extension TAG] when the total is 15 WORD or more
Payload WORD 1st  (high WORD)   IEEE Binary Interchange 1st
...
Payload WORD Nth  (low WORD)    IEEE Binary Interchange Nth

Interpretation

  • The Payload WORDs are concatenated in big-endian order and read as an IEEE 754 binary interchange bit string of the corresponding width.
  • The interchange bit pattern is preserved, including the NaN payload and signed zero.
  • A decoder must not replace a NaN with an arbitrary canonical NaN or drop the sign of a signed zero.
  • Rounding mode and arithmetic behavior are not defined by this serialization format.

Length

The total is the WORD count of the TAG 1 WORD, the Length extension TAG (if any), and the Payload (Record and TAG WORD).

FormatPayloadLength codeLength extension TAGTotal Length
binary161 WORD0001none2 WORD
binary322 WORD0010none3 WORD
binary644 WORD0100none5 WORD
binary1288 WORD1000none9 WORD

binary128 is also within the direct range of 1 to 14 WORD, so no Length extension TAG is used.

Validity

  • The Payload is exactly one of 1, 2, 4, or 8 WORD.
  • Each Payload size must match the Length representation in the table above exactly.
  • Re-encoding that changes the width, and padding WORDs before or after the Payload, are not allowed.

Examples

FormatTAGLength extension TAGPayload exampleVerdict
binary160631none0000canonical
binary320632none0000 0000canonical
binary640634none0000 0000 0000 0000canonical
binary1280638none8 WORD bit stringcanonical
anysize does not match the Lengthanyanyinvalid

Standards basis

Spec document source

This is the spec document 0x00000000/codecs/0x00000630/latest.geul as read with geul show (hexadecimal in uppercase).

SPEC-VERSION 0x0001
DOC-ID 0x0426000000000000063000000000
BODY
#1 DECLARE 0x0630
#2 FIELD #1 rest
#3 BIND #1 "BINARY-FLOAT"
#4 BIND #2 "ieee-binary"