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

div/idiv is broken. Has no tests


    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • None
    • Back End, QA
    • None

      From a code review:

      suspect idiv is/has been broken. This xpath spec says (a idiv b) is equivilent to (a div b) cast as an xs:integer. So I would either expect this to be RoundingMode.FLOOR here, or have some code elsewhere that inserts a cast to integer, but I don't see that. There also do not appear to be any tests for idiv, so I wouldn't be surprised if this is broken.

              dthompson David Thompson
              mbeckerle.dfdl Mike Beckerle
              0 Vote for this issue
              2 Start watching this issue