|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: decimal points
Hi Subbu, > i wana format $num which is a floating point num in such a way that > i only have exactly 3 digits after decimal point.. > any help > i used format-num() but it is rounding off I guess you mean that you're using format-number(). The following should work: format-number($num, '0.000') If there's more than three decimal places, format-number() will round to three decimal places; if there's less, it will add 0s to make it up to three. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








