Actions
Support #6408
closeddecimalDivide uses HALF_DOWN instead of HALF_UP rounding
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2024-04-29
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
12
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Java
Description
In class net.sf.saxon.expr.Calculator.java
The function public static BigDecimalValue decimalDivide(NumericValue a, NumericValue b) throws XPathException
is using HALF_DOWN instead of HALF_UP rounding, which would be the default of XPath 3.1 round() see https://www.w3.org/TR/xpath-functions-31/#numeric-value-functions
Seen in 12.4 release
Files
Please register to edit this issue
Actions