W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2004

ORA-FO-181-B: imprecise specification in case of negative durations

From: Stephen Buxton <Stephen.Buxton@oracle.com>
Date: 16 Feb 04 14:42:47
Message-Id: <200402162242.i1GMglb24786@rgmgw4.us.oracle.com>
To: public-qt-comments@w3.org
Cc:

SECTION 9.2.1.3: canonical representation 

The algorithm is sufficiently clear for positive durations.
For negative durations, the world is not agreed on what the 
remainder is when dividing a negative number by a positive number.
The solution is to first take the absolute value of the duration,
then divide by 12 to get the absolute number of years and months,
and finally prepend a minus sign if the input was negative.
Similar remarks apply to section 9.2.2.3.


- Steve B.
Received on Monday, 16 February 2004 17:42:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:13:57 UTC