|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: What is the shortest expression converting an xs:
You could use 11 to (f:sqrt($pNum, 0.1E0) + 0.5) idiv 1 but it's not a great improvement. I'm trying to remember why round() returns a double - I think it's because of the problem of numbers that are too large for an xs:integer. Michael Kay > -----Original Message----- > From: Dimtre Novatchev [mailto:dnovatchev@xxxxxxxxx] > Sent: 04 December 2004 00:53 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: What is the shortest expression converting an > xs:double to xs:integer? > > In my code I had to use this expression: > > (11 to xs:integer(round(f:sqrt($pNum, 0.1E0)))) > > Can it be expressed in a more simple way? > > Cheers, > Dimitre
|
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








