RE: round() with number of decimals as argument

> 
> Hello! Couldn't xpath function round() in future accept an 
> optional integer parameter that decides how many decimals to preserve?
> That would imply:
> round(1.187) = 1
> round(1.187, 1) = 1.2
> round(1.187, 2) = 1.19 
> 

This functionality is available (though with a slightly different rounding
algorithm) in the round-half-to-even function.

Michael Kay
http://www.saxonica.com/

Received on Friday, 18 May 2007 10:12:47 UTC