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

[Bug 4621] [F&O] rounding for duration *|div number

From: <bugzilla@wiggum.w3.org>
Date: Tue, 12 Jun 2007 20:31:40 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1HyD1g-00067U-LX@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4621





------- Comment #2 from mike@saxonica.com  2007-06-12 20:31 -------
Proposed change:

1. Change the summary of the two functions from

Summary: Returns the result of [multiplying|dividing] the value of $arg1 by
$arg2. The result is rounded to the nearest month. For a value v, 0 <= v < 0.5
rounds to 0; 0.5 <= v < 1.0 rounds to 1.

to

Summary: Returns the result of [multiplying|dividing] the value of $arg1 by
$arg2. The result is rounded to the nearest month.

2. Add immediately after the summary of each function, the paragraph:

The result is the xs:yearMonthDuration whose length in months is equal to the
result of applying the fn:round function to the value obtained by
[multiplying|dividing] the length in months of $arg1 by the value of $arg2.
Received on Tuesday, 12 June 2007 20:31:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:33 UTC