[
https://issues.apache.org/jira/browse/SOLR-10356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15940233#comment-15940233
]
Vish Persaud commented on SOLR-10356:
-------------------------------------
In round(a,b), 'a' is the value to round and 'b' is the desired number of
decimal places, i.e.:
round(4.17) = 4
round(4.17,0) = 4
round(4.17,1) = 4.2
round(4.17,9) = 4.17
round(a) is same as java.lang.Math.round(a), but I'm unclear if there's a
sufficiently performant implementation for round(a,b). After a quick search,
it looks like there are implementations involving Math.round with additional
multiplication & division, and some involving DecimalFormat, NumberFormat, or
BigDecimal. So not sure if round(a,b) is worthwhile.
> Add Streaming Evaluators for basic math functions
> -------------------------------------------------
>
> Key: SOLR-10356
> URL: https://issues.apache.org/jira/browse/SOLR-10356
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Dennis Gove
> Assignee: Dennis Gove
> Priority: Minor
> Attachments: SOLR-10356.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]