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 5123 - K2-RoundFunc-117/118
Summary: K2-RoundFunc-117/118
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-02 10:02 UTC by Nick Jones
Modified: 2007-10-08 12:43 UTC (History)
0 users

See Also:


Attachments

Description Nick Jones 2007-10-02 10:02:39 UTC
fn:round(xs:float("-0.50"))
fn:round(xs:double("-0.50"))

These test should return negative zero (6.4.4 [F&0]), so -0 is a valid answer, but the only expected result is 0.
Comment 1 Michael Kay 2007-10-02 10:09:13 UTC
The correct serialization of negative zero is "0".
Comment 2 Michael Kay 2007-10-02 10:11:39 UTC
>The correct serialization of negative zero is "0".

Sorry, I misremembered. That was in XPath 1.0. In 2.0 it is "-0".
Comment 3 Frans Englich 2007-10-08 11:45:17 UTC
A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to CLOSED.
Otherwise, reopen this report. If no feedback is returned within two weeks,
status will be changed to CLOSED. Thanks for reporting!
Comment 4 Nick Jones 2007-10-08 12:43:05 UTC
Thanks.