[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XPath / XSLT 2.1 - Rounding algorithms
> round(3.065) returns 3. , whereas my need is for a function > to return 3.07 (say), something like this, say: > > round-half-up(3.065,2) -> 3.07 > round-half-up(-3.065,2) -> -3.07 You can always multiply by a hundred, round(), and then divide by a hundred. I know it's tedious but there was a lot of feeling in the WG that we should have a library of a hundred functions rather than a thousand, if we were to have a reasonable prospect of making the spec implementable (not to mention the task of actually writing it and publishing it). Michael Kay http://www.saxonica.com/
|
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
|