This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: numbering
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] numbering
- From: Edmund Mitchell <EMitchell at fnf dot com>
- Date: Fri, 2 Feb 2001 10:45:37 -0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello
Is there any simple way that I can get the integer result only from
expression like I want 2(or 3) from 5 div 2
Or I have to use string function to "build" that result?
You might try the function round(). For example, round(5 div 2)
Check it out (and the other number functions) at
http://www.w3.org/TR/xpath.html#section-Number-Functions
I hope that helps
Edmund
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list