Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
GNU Lesser General Public License v2.1
515
stars
221
forks
source link
Decimal sum ../c1 + ../c2 yields double #1823
Open
ebruchez opened 10 years ago
1.0E6
$c1 + $c2
orsum((../c1, ../c2))
work and yield a decimalAll types are marked as
*:decimal
in the source.Not sure if this is a bug in Saxon and/or in the way we use it and pass types. What I observed with the debugger:
ArithmeticExpression
is doing the sumxs:decimal
types on both handscalculator
isDoublePlusDouble
The
calculator
is set duringtypeCheck
, and there the result type is consideredXS_UNTYPED_ATOMIC
.