RE: Avg() or round() : How to limit the decimal place?

In XSLT you can use format-number()

In XPath and XQuery you can use round-half-to-even($x, 4)

Michael Kay 

> -----Original Message-----
> From: www-ql-request@w3.org [mailto:www-ql-request@w3.org] On 
> Behalf Of Houman Khorasani
> Sent: 25 June 2004 20:18
> To: www-ql@w3.org
> Subject: Avg() or round() : How to limit the decimal place?
> Importance: High
> 
> 
> Hello,
> 
> The avg() function im statement returns values like that:
> <avgDelay>48413.448275862068965517</avgDelay>
> 
> If I use round() so I would get 48413.  But how do I get 
> 48413.4483 ? How
> can I limit the decimal place to 4?
> 
> I couldn't find anything in W3 Draft.
> 
> Thanks
> Houman
> 
> 

Received on Friday, 25 June 2004 21:16:26 UTC