Skip to content

Main content

IEEE Binary16 Exact Dyadic Record

Decode an exact IEEE binary16 raw pattern into signed integer significand times 2^binaryExponent; infinity/NaN have null dyadic value, negative zero remains explicit.

Loading tool…

Description

Decode an exact IEEE binary16 raw pattern into signed integer significand times 2^binaryExponent; infinity/NaN have null dyadic value, negative zero remains explicit.

Binary floating-point storage separates sign, biased exponent and fraction fields. Zero and subnormal patterns use a different significand rule from normal values, and reserved exponent patterns represent infinity or NaN. These tools accept exact unsigned raw patterns as decimal integer text, preserving signed-zero and payload evidence without converting the bits into a JavaScript numeric value.

Decode an exact IEEE binary16 raw pattern into signed integer significand times 2^binaryExponent; infinity/NaN have null dyadic value, negative zero remains explicit.

When to use this tool

Use this tool to decode an exact IEEE binary16 raw pattern into signed integer significand times 2^binaryExponent; infinity/NaN have null dyadic value, negative zero remains explicit.

How to use the tool and how it works

  1. Enter pattern using the input definitions below.
  2. Run the operation. Resolve malformed-input errors before interpreting the result.
  3. Read result.classification, result.dyadic. Interpret signs, units, ordering and null values using the rules below.

Read an exact unsigned 16-bit pattern from decimal text. Its fields are one sign bit, 5 exponent bits and 10 fraction bits, with exponent bias 15. For finite values, significand is the signed fraction plus the implicit 2^10 only for normals. binaryExponent is storedExponent−15−10 for normals and 1−15−10 for zeros/subnormals. Return their exact product significand×2^binaryExponent; record negativeZero separately. Infinity and NaN have dyadic = null.1

Input fieldMeaning and unitsAccepted input
patternExact unsigned 16-bit raw pattern as decimal integer text, from 0 through 2^16−1.Text, at most 8,192 UTF-16 code units; the stated grammar and narrower limits also apply.
Output fieldInterpretation
resultObject containing the fields below.
result.classificationRaw-bit class: zero, subnormal, normal, infinity or nan.
result.dyadicFinite {significand,binaryExponent,negativeZero} record, or null for infinity/NaN.
json
{
  "input": {
    "pattern": "15360"
  },
  "output": {
    "result": {
      "classification": "normal",
      "dyadic": {
        "significand": "1024",
        "binaryExponent": -10,
        "negativeZero": false
      }
    }
  }
}

Limitations and assumptions

  • The integer significand is returned as decimal text and is not reduced by removing powers of two. Signed zero needs its separate flag because an integer zero has no sign.
  • Pattern width is fixed by the tool name. Supply 0≤pattern<2^width as exact decimal integer text, not hexadecimal text or the represented float’s decimal value. Raw-bit operations preserve payloads without guaranteeing runtime NaN behavior.
  • Every declared top-level input is required and unknown fields are rejected. Ordinary strings are limited to 8,192 UTF-16 code units and lists to 128 entries, with tighter operation-specific bounds where stated. JSON text has bounded nesting and node counts.
  • Numeric outputs must be finite and within the absolute safe-integer magnitude; exact larger integers use decimal text. Source positions are zero-based UTF-16 offsets and span ends are exclusive unless a different convention is explicitly stated.

Alternative or Complementary methods

Distinguish a raw unsigned bit pattern from the decimal value that pattern represents. Use field join/split operations for exact bit editing and a separate numeric conversion when a runtime floating-point value is required.

References

  1. Tool behavior and example: IEEE Binary16 Exact Dyadic Record — tool.io

Similar or alternative tools

  • IEEE Binary32 Exact Dyadic Record

    Decode an exact IEEE binary32 raw pattern into signed integer significand times 2^binaryExponent; infinity/NaN have null dyadic value, negative zero remains explicit.

  • IEEE Binary64 Exact Dyadic Record

    Decode an exact IEEE binary64 raw pattern into signed integer significand times 2^binaryExponent; infinity/NaN have null dyadic value, negative zero remains explicit.