This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1419 - [FO] round() for -0.5e0 to -0e0
Summary: [FO] round() for -0.5e0 to -0e0
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-13 21:17 UTC by Michael Rys
Modified: 2005-09-29 11:07 UTC (History)
0 users

See Also:


Attachments

Description Michael Rys 2005-05-13 21:17:18 UTC
Since 0 and -0 compare equal anyway and many rounding functions (checked C# 
and SQL) do not special case the range -0.5e0 and -0e0, we should not special 
case rounding and allow results to be 0 instead of -0.
Comment 1 Michael Kay 2005-05-13 21:22:29 UTC
I think it's appropriate during a last call for comments on XPath 2.0 to
question things that are new in XPath 2.0, but if we want to make changes to
behaviour that was defined in XPath 1.0 it seems a little bit odd to be
proposing the change now.
Comment 2 Ashok Malhotra 2005-05-20 22:14:24 UTC
The joint QT WGs agreed to adopt this suggestion at the joint meeting on 5/19/2005.

Ashok Malhotra
Comment 3 Michael Kay 2005-05-21 07:41:52 UTC
Just to be clear, the decision was that it should be implementation-defined in
this case whether +0 or -0 was returned. - Michael Kay