Details
-
Bug
-
Resolution: Duplicate
-
Normal
-
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
Issue Links
- duplicates
-
DFDL-1691 div/idiv is broken. Has no tests
-
- Closed
-