Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: CSDL XML
    • Labels:
      None
    • Environment:

      [Closed]

      Description

      Computer history has provided us with a growing number of numeric data types, and quite a few of them are reflected in Edm primitive types.

      Integer types:

      • Byte (0..2^8)
      • SByte
      • Int16
      • Int32
      • Int64
      • Decimal Scale=0

      Fixed-point types

      • Decimal with VariableScale="false", see ODATA-76

      Floating-point types

      • Decimal with VariableScale="true", see ODATA-76
      • Single
      • Double

      Especially for defining vocabularies it would be helpful to have an abstract type Edm.Number that can be applied to any of the numeric primitive types.

        Attachments

          Activity

          ralfhandl Ralf Handl created issue -
          ralfhandl Ralf Handl made changes -
          Field Original Value New Value
          Proposal Define a single Numeric data type with facets to specify its range and precision, e.g.
          - MinValue
          - MaxValue
          - ItFloats
          - ...

          Have a close look at XML Schema 1.1 and IEEE 754 to detect the required facets.
          Define an abstract type Edm.Number as a specialization of Edm.PrimitiveType and a generalization of all numeric primitive types that can be used in term definitions and in complex types used within term definitions.
          Description Computer history has provided us with a growing number of numeric data types, and quite a few of them are reflected in Edm primitive types.

          Integer types:
          - Byte (0..2^8)
          - SByte
          - Int16
          - Int32
          - Int64
          - Decimal Scale=0

          Fixed-point types
          - Decimal --> not sure yet if this is fixed or floating point, see ODATA-76

          Floating-point types
          - Decimal --> not sure yet if this is fixed or floating point, see ODATA-76
          - Single
          - Double

          Missing numeric types
          - Quadruple == binary128
          - DECFLOAT in various lengths
          Computer history has provided us with a growing number of numeric data types, and quite a few of them are reflected in Edm primitive types.

          Integer types:
          - Byte (0..2^8)
          - SByte
          - Int16
          - Int32
          - Int64
          - Decimal Scale=0

          Fixed-point types
          - Decimal with VariableScale="false", see ODATA-76

          Floating-point types
          - Decimal with VariableScale="true", see ODATA-76
          - Single
          - Double

          Especially for defining vocabularies it would be helpful to have an abstract type Edm.Number that can be applied to any of the numeric primitive types.

          Environment [Proposed]
          ralfhandl Ralf Handl made changes -
          Proposal Define an abstract type Edm.Number as a specialization of Edm.PrimitiveType and a generalization of all numeric primitive types that can be used in term definitions and in complex types used within term definitions. Close without action

          Accepted: https://www.oasis-open.org/committees/download.php/48549/odata-meeting-29_on-20130314-minutes.html#odata-256
          Status New [ 10000 ] Open [ 1 ]
          ralfhandl Ralf Handl made changes -
          Status Open [ 1 ] Closed [ 6 ]
          ralfhandl Ralf Handl made changes -
          Environment [Proposed] [Closed]
          Status Closed [ 6 ] Open [ 1 ]
          ralfhandl Ralf Handl made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          ralfhandl Ralf Handl made changes -
          Status Resolved [ 5 ] Applied [ 10002 ]
          ralfhandl Ralf Handl made changes -
          Status Applied [ 10002 ] Closed [ 6 ]
          handl Ralf Handl made changes -
          Reporter Ralf Handl [ ralfhandl ] Ralf Handl [ handl ]
          handl Ralf Handl made changes -
          Assignee Ralf Handl [ handl ]

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: