RE: Avg() or round() : How to limit the decimal place?
"Michael Kay" <[email protected]> Sat, 26 Jun 2004 02:15:43 +0100
| Newsgroups | gmane.comp.web.query-languages |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected] [mailto:[email protected]] On > Behalf Of Houman Khorasani > Sent: 25 June 2004 20:18 > To: [email protected] > 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 > >