Re: [xsl] Number functions

Subject: Re: [xsl] Number functions
From: Kal Ahmed <kal@xxxxxxxxxxxxx>
Date: Fri, 07 May 2004 15:57:46 +0100
Something like: <xsl:value-of select="floor(3.16738127*100) div 100"/> should work for that in XSLT 1.0.

Cheers,

Kal

Andrea Racca wrote:

I have a number like 3.16738127 in the field and I want to see 3.16 from my browser.
Thank's
andrea



XSLT 1.0 has only one numeric data type, called "number", which is actually
double-precisiong floating point.

XSLT 2.0 has four numeric types, integer, decimal, float, and double, and an
increased range of operators and functions to match.






Perhaps you could explain what you are trying to do?

Michael Kay



-----Original Message-----
From: Andrea Racca [mailto:racca@xxxxxxxxx] Sent: 07 May 2004 13:22
To: xsl-list
Subject: [xsl] Number functions


Hi,
I known XSL number functions like ceiling, floor, number, round to work with INTEGER.
There are number funcions that return not only Integer but also float or other type with decimal?
thank's
andrea

Current Thread