Oh. Well that's a bad decision, as you no longer have the neat divide
between exact arithmetic (requested by xs:integer or xs:decimal) and
inexact arithmetic (requested by xs:double and xs:float) that you get
in XML Schema.
XML schema doesn't guarantee exact arithmetic for integer or decimal
either
http://www.w3.org/TR/xmlschema-2/#decimal
says
Note: All ·minimally conforming· processors ·must· support
decimal numbers with a minimum of 18 decimal digits (i.e., with a
·totalDigits· of 18). However, ·minimally conforming·
processors ·may· set an application-defined limit on the maximum
number of decimal digits they are prepared to support, in which case
that application-defined maximum number ·must· be clearly
documented.
and xs:integer is derived from xs::decimal so also not guaranteed to be
exact.
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--