Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-747

Allow IEEE 754 constants [-]INF and NaN also for Edm.Decimal

    XMLWordPrintable

    Details

    • Proposal:
      Hide

      Modify the related ABNF construction rules to allow nanInfinity also for decimalValue:

      decimalValue = [SIGN] 1*DIGIT ["." 1*DIGIT] / nanInfinity

      doubleValue = decimalValue [ "e" [SIGN] 1*DIGIT ] ; IEEE 754 binary64 floating-point number (15-17 decimal digits)
      singleValue = doubleValue ; IEEE 754 binary32 floating-point number (6-9 decimal digits)
      nanInfinity = 'NaN' / '-INF' / 'INF'

      Show
      Modify the related ABNF construction rules to allow nanInfinity also for decimalValue: decimalValue = [SIGN] 1*DIGIT ["." 1*DIGIT] / nanInfinity doubleValue = decimalValue [ "e" [SIGN] 1*DIGIT ] ; IEEE 754 binary64 floating-point number (15-17 decimal digits) singleValue = doubleValue ; IEEE 754 binary32 floating-point number (6-9 decimal digits) nanInfinity = 'NaN' / '-INF' / 'INF'

      Description

      Just as for IEEE 754 floating-point numbers, calculations of Edm.Decimal values also can lead to results that can only be represented by constants for "Not a Number" or "(negative) Infinity".

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gerald.krause1 Gerald Krause
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: