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

SECTION 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

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

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