You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/10/24 21:22:57 UTC

DO NOT REPLY [Bug 24111] New: - floor, ceiling and round handle -0 results incorrectly

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24111>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24111

floor, ceiling and round handle -0 results incorrectly

           Summary: floor, ceiling and round handle -0 results incorrectly
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xpath
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: richcao@ca.ibm.com


In Xalan, the following cases return 0 (whereas the result should be -0)

- ceiling(-0)
- ceiling(-0.1)
- floor(-0)
- round(-0)

In XSLTC, of the above cases, only round(-0) returns the incorrect result of 0.

Refer to the XPATH specifications for the round case [1], and the XPATH errata
for floor and ceiling.

[1] http://www.w3.org/TR/xpath#function-round
[2] http://www.w3.org/1999/11/REC-xpath-19991116-errata/