incubator-vxquery-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinayak Borkar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VXQUERY-45) XSDecimalPointable.setDecimal(double, byte[], int) incorrect
Date Tue, 10 Jul 2012 12:18:33 GMT
Vinayak Borkar created VXQUERY-45:
-------------------------------------

             Summary: XSDecimalPointable.setDecimal(double, byte[], int) incorrect
                 Key: VXQUERY-45
                 URL: https://issues.apache.org/jira/browse/VXQUERY-45
             Project: VXQuery
          Issue Type: Bug
            Reporter: Vinayak Borkar


The conversion of double to bytes for xs:decimal is incorrect. The code simply ignores a the
sign of the value and also any possible exponent.

For example, try the following queries:

-- start query1 --
65535032.0023
-- end query 1 --

-- start query 2 --
-65535032.0023
-- end query 2 --

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message