This is an automated email from the ASF dual-hosted git repository.
slawrence pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-site.git
The following commit(s) were added to refs/heads/main by this push:
new c286860 Add documentation for or deviation from XPath numeric
operations
c286860 is described below
commit c286860c62aa73c945d6b8ac0244a22eaa9baa53
Author: Steve Lawrence <[email protected]>
AuthorDate: Fri Oct 17 08:46:10 2025 -0400
Add documentation for or deviation from XPath numeric operations
DAFFODIL-2574
---
site/unsupported.md | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/site/unsupported.md b/site/unsupported.md
index 2b3a9dc..64db8e0 100644
--- a/site/unsupported.md
+++ b/site/unsupported.md
@@ -71,6 +71,20 @@ that there has been no intention to support as of this
release.
* dfdl:encoding using CCSIDs {% jira 2000 %}
* dfdl:useNilForDefault {% jira 1412 %}
+#### XPath Features
+
+* Arbitrary precision for numeric operations (+, -, *, div, idiv, mod) is only
+ used in specific cases. This can potentially lead to loss of precision or
+ overflow/underflow. The rules for promoting operands are as follows:
+ * If both operands are xs:long, xs:unsignedInt, or a subtype, both operands
+ are promoted to xs:long
+ * If one operand is xs:float or xs:double and the other is xs:float,
+ xs:double, xs:long, xs:unsignedLong, or a subtype, the operands are
+ promoted to xs:double
+ * If one operand is xs:integer or xs:nonNegativeInteger, and the other is
+ xs:integer or a subtype, both operands are promoted to xs:integer.
+ * Otherwise, both operands are promoted to xs:decimal
+
The above listings are derived from
this [DFDL Language New Features JIRA Report
](https://s.apache.org/daffodil-unimplemented-dfdl-language-features).