Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1705

DFDL Expression div/idiv operator broken

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • 2.0.0
    • None
    • None
    • None

    Description

      Daffodil does not currently handle the div operator correctly. The div operator is for decimal division, with the idiv operator for integer division. However, if the denominator in the div operator is an integer, then Daffodil treats it as integer division. For example, in the debuger:

      $ eval 1 div 8
        0
      $ eval 1 div 8.0
        0.125
      $ eval 1 idiv 8
        0
      $ eval 1 idiv 8.0
        0.125

      1 div 8 should return 0.125 and eval 1 idiv 8.0 shoul return 0.

      Gliffy Diagrams

        Attachments

          Activity

            People

              Unassigned Unassigned
              slawrence Steve Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Tasks