xsl-list
[Top] [All Lists]

Re: [xsl] floor() and idiv

2008-11-06 15:16:54
"Andrew" == Andrew Welch 
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> writes:

    >> >> Gestalt gives 10, 10, 10.
    >> 
    Andrew> As far as I understand, which is not very far, it's a
    Andrew> fundamental problem with binary arithmetic.  The standard
    Andrew> division technique is fast but incurs this sort of
    Andrew> problem, while the BigDecimal approach is exact but much
    Andrew> slower. 

You've lost me - we were talking about integer division, I thought.

If you are talking about xs:double, compared with xs:decimal, then
yes. But I don't see how that comes into the problem.
-- 
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>