stevedlawrence 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_r254749200
##########
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:
Should Int also convert to Decimal isntead of Float? So only float and
double divisions return float/double, eveything else will return 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