You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Benson (JIRA)" <ji...@apache.org> on 2007/08/27 18:51:30 UTC

[jira] Resolved: (JXPATH-102) Core rounding functions don't handle NaN or infinite values correctly

     [ https://issues.apache.org/jira/browse/JXPATH-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Benson resolved JXPATH-102.
--------------------------------

    Resolution: Fixed

> Core rounding functions don't handle NaN or infinite values correctly
> ---------------------------------------------------------------------
>
>                 Key: JXPATH-102
>                 URL: https://issues.apache.org/jira/browse/JXPATH-102
>             Project: Commons JXPath
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Sergey Vladimirov
>             Fix For: 1.3
>
>         Attachments: patch.txt, testcase-patch.txt
>
>
>         assertXPathValue(context, "floor('NaN')", new Double(Double.NaN));
>         assertXPathValue(context, "floor(-2 div 0)", new Double(Double.NEGATIVE_INFINITY));
>         assertXPathValue(context, "floor(2 div 0)", new Double(Double.POSITIVE_INFINITY));
>         assertXPathValue(context, "ceiling('NaN')", new Double(Double.NaN));
>         assertXPathValue(context, "ceiling(-2 div 0)", new Double(Double.NEGATIVE_INFINITY));
>         assertXPathValue(context, "ceiling(2 div 0)", new Double(Double.POSITIVE_INFINITY));
>         assertXPathValue(context, "round('NaN')", new Double(Double.NaN));
>         assertXPathValue(context, "round(-2 div 0)", new Double(Double.NEGATIVE_INFINITY));
>         assertXPathValue(context, "round(2 div 0)", new Double(Double.POSITIVE_INFINITY));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.