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

Amrit Sarkar commented on SOLR-10403:
-------------------------------------

[~janhoy] I can look into it and work out a patch. Anyone already working on it?

> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to