Subject: RE: XSLT 2.0 Decimal number silliness
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Thu, 25 Mar 2004 18:18:36 +0100
|
> -----Original Message-----
> From: Andreas L. Delmelle [mailto:a_l.delmelle@xxxxxxxxxx]
>
> > -----Original Message-----
> > From: Jeff Kenton [mailto:jkenton@xxxxxxxxxxxxx]
> >
> <snip />
> > Both lines of output should be equal. There's got to be
> > something better. At least allow specification of number of
> > fraction digits.
> >
>
> Hi,
>
> Hmm.. Any reason why you can't use format-number() (possibly in combo with
> xsl:decimal-format)
>
Just to be curious, does
<xsl:value-of select="2.000 div 3.000" />
<xsl:value-of select="0.4 div 0.6" />
make a difference?
I'm guessing the number of significant digits is related to the number
specified in the operands...
Cheers,
Andreas
|