W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2007

round() with number of decimals as argument

From: Markus Jonsson <carnaby@passagen.se>
Date: Fri, 18 May 2007 11:14:44 +0200 (CEST)
Message-ID: <3105081.1179479684923.JavaMail.apache@eni-cpps12.sth.basefarm.net>
To: <public-qt-comments@w3.org>

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 
Received on Friday, 18 May 2007 09:14:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:18 UTC