Re: [xsl] XSL SUM BUG?

Subject: Re: [xsl] XSL SUM BUG?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 19 Feb 2004 20:52:18 GMT

Its not a bug, it's a feature of binary computing and numerical
calculations.
You can not store 0.1 exactly as a base 2 floating point number, so you
can not get any exact answers from any calculation involving such a
number.

Use format-number() to round to a suitable number of decimal places and
the error terms will disapear.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread