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

Define modulo operator for non-integral numeric values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_ERRATA03
    • Fix Version/s: V4.01_WD01
    • Component/s: URL Conventions
    • Labels:
      None
    • Proposal:
      Hide

      Clarify that mod supports non-integral numeric operands, and that it is defined as

      a mod b eq a sub b mul floor(a div b)

      (i.e., the remainder after dividing a by b the maximum integral number of times)

      Show
      Clarify that mod supports non-integral numeric operands, and that it is defined as a mod b eq a sub b mul floor(a div b) (i.e., the remainder after dividing a by b the maximum integral number of times)

      Description

      The div operator is defined for numeric operands.

      The mod operator is only defined for integral operands, but the section on the mod operator contains rules for decimal operands.

      Clarify whether mod supports non-integral numeric operands, and how it is calculated, e.g. a mod b = a sub b mul floor(a div b)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: