xsl-list
[Top] [All Lists]

Re: [xsl] floor() and idiv

2008-11-06 17:12:17
"David" == David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> writes:

    David> Is it really the case in gestalt that the two always give
    David> the same, or may thay differ eventually at the edges of
    David> some finite range of supported values?

No, they will not differ. The range of supported values is governed by
a command-line option. If you try to use a bigger number, then you
will get the appropriate error. (FOCA0001 I think).

    David> F&O spec says:

    David> For xs:decimal values the number of digits of precision
    David> returned by the numeric operators is
    David> ·implementation-defined·. If the number of digits in the
    David> result exceeds the number of digits that the implementation
    David> supports, the result is truncated or rounded in an
    David> ·implementation-defined· manner.

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.
-- 
Colin Adams
Preston Lancashire

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>