|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Number functions
Subject: Re: 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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|