Subject: RE: [xsl] rounding within the "format-number" function From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 26 Jan 2006 17:48:25 -0000 |
> > No, and no. (Not even in 2.0!) > > xpath2 defines round() to round up and round-half-to-even() to to > rounding-as-i-was-taught-at-school doesn't it? > You were obviously at a better school than most people. We do offer a selection of algorithms, but not everything that anyone wants (e.g. rounding away from zero); and the only one that does rounding to a user-specified number of decimal places is round-half-to-even(), which uses one particular algorithm. Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] rounding within the "form, David Carlisle | Thread | RE: [xsl] rounding within the "form, Haarman, Michael |
RE: [xsl] rounding within the "form, Haarman, Michael | Date | [xsl] finding lowest level in ances, Dan Vint |
Month |