jadams-tresys commented on a change in pull request #179: Return xs:decimal
when dividing xs:long
URL: https://github.com/apache/incubator-daffodil/pull/179#discussion_r254817594
##########
File path:
daffodil-core/src/main/scala/org/apache/daffodil/dpath/NodeInfoUtils.scala
##########
@@ -86,7 +86,7 @@ object NodeInfoUtils {
case Decimal => Decimal
case Integer => Decimal
case Double => Double
- case Long => Double
+ case Long => Decimal
case Float => Float
case Int => Float
case ArrayIndex => ArrayIndex
Review comment:
I believe you are correct, according to the xpath spec, 'div' on integers
should also return a decimal
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services