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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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/

Reply via email to