Subject: Re: [xsl] floor() and idiv From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 6 Nov 2008 22:32:57 GMT |
> 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 7minimally conforming7 processors 7must7 support decimal numbers with a minimum of 18 decimal digits (i.e., with a 7totalDigits7 of 18). However, 7minimally conforming7 processors 7may7 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 7must7 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. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] floor() and idiv, Colin Paul Adams | Thread | RE: [xsl] floor() and idiv, Michael Kay |
Re: [xsl] floor() and idiv, Colin Paul Adams | Date | RE: [xsl] Combining nodes, Bordeman, Chris |
Month |