lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-10403) Currency sum : wrong results
Date Mon, 03 Apr 2017 13:43:41 GMT

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

Jan Høydahl commented on SOLR-10403:
------------------------------------

Sure, no problem. Hopefully someone will find time to fix it. Feel free to nudge here if nothing
happens within a few months.

> Currency sum : wrong results
> ----------------------------
>
>                 Key: SOLR-10403
>                 URL: https://issues.apache.org/jira/browse/SOLR-10403
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Schema and Analysis
>    Affects Versions: 6.5
>         Environment: centos 7.2
>            Reporter: Frédéric auguste
>              Labels: currency
>             Fix For: master (7.0)
>
>
> We have an issue on currency sum calculation.
> Description of the problem :
> 1) Default currency is configured to : USD
> 2) We set a value to 2554.55 KRW (column name is price)
> 3) Conversion rule USD / KRM is set to  1116.071429
> 4) The result value of this function currency(price, 'KRW') is 2544 (0,4 % of error).
> This issue is : currency function convert all price in the default currency with the
precision of the currency (2 digit for USD).
> The precision of the currency should apply at the end of the calcul, not on the intermediaire
result.
> Could you please check this issue ?
> Thanks,
> Regards,
> Frédéric



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message