You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Xu Zhang (JIRA)" <ji...@apache.org> on 2014/09/26 00:30:33 UTC

[jira] [Commented] (SOLR-6562) Function query calculates the wrong value

    [ https://issues.apache.org/jira/browse/SOLR-6562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14148402#comment-14148402 ] 

Xu Zhang commented on SOLR-6562:
--------------------------------

This is floating number precision nature, when using float to represent big numbers, we will lose precision. Do we really need to support arbitrary-precision numbers ?


> Function query calculates the wrong value
> -----------------------------------------
>
>                 Key: SOLR-6562
>                 URL: https://issues.apache.org/jira/browse/SOLR-6562
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.9
>            Reporter: Stefan Neumüller
>            Priority: Critical
>
> This calculation fl=sub(sum(abs(sub(1416906516710,1416783600000)),abs(sub(103680000000000,1416906516710))),102263216400000) should return 0. But the calculated value is 8388608



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org