Chris Chui just opened a bug
(https://w3.opensource.ibm.com/tracker/?aid=33420)
The specs seems to say nothing about rounding mode on div,
but there are discussions. It is not really a bug.
We have round functions. It my be good idea to round use
use the same rounding, but round for decimal in there is using
double rounding. It is not a good idea because we are losing the main
advantage of decimals - precision.
I am using ROUND_FLOOR mode. I think I should
use ROUND_HALF_EVEN for
a. operators div and mod for float, double and decimal
b. change fn:round-half-to-even(xs:decimal)
to use Bigdecimal rounding (to extend double precision limit).
Igor Hersht
XSLT Development
IBM Canada Ltd., 8200 Warden Avenue, Markham, Ontario L6G 1C7
Office D2-260, Phone (905)413-3240 ; FAX (905)413-4839
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]