Uploaded image for project: 'Technical Advisory Board'
  1. Technical Advisory Board
  2. TAB-1501

2.3 Float IEEE 7540-2008 or RFC7159 - STIX Part 1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: STIX Version 2.0 CSPRD01
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Technical

    • Proposal:
      Hide

      Start with the floating point definition of JSON, [-(2**53)+1, (2**53)-1] since that is the result of sub-setting IEEE 754.

      Show
      Start with the floating point definition of JSON, [-(2**53)+1, (2**53)-1] since that is the result of sub-setting IEEE 754.

      Description

      2.3 Float reads in part:

      *****
      The float data type represents an IEEE 754 [IEEE 754-2008] double-precision number (e.g., a number with a fractional part). However, because the values ±Infinity and NaN are not representable in JSON, they are not valid values in STIX.

      In the JSON MTI serialization, floating point values are represented by the JSON number type [RFC7159].
      *****

      OK, since you can only represent a subpart of IEEE 754, why not simply start with the floating point definition of JSON? Don't worry about subsetting IEEE 754. Yes?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              patrick Patrick Durusau
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: