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

Joseph Percivall commented on NIFI-1662:
----------------------------------------

As a note: this will need to take into account the PriorityAttributePrioritizer 
as well.

https://github.com/apache/nifi/blob/ad73a23affe32e77a5295c829a4958da440d24cb/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-prioritizers/src/main/java/org/apache/nifi/prioritizer/PriorityAttributePrioritizer.java

> Improve Expression Language to Enable Working with Decimals
> -----------------------------------------------------------
>
>                 Key: NIFI-1662
>                 URL: https://issues.apache.org/jira/browse/NIFI-1662
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Joseph Percivall
>            Assignee: Joseph Percivall
>
> Currently the math operations in Expression Language use Longs to evaluate 
> numbers. This leads to any decimal places getting truncated when performing 
> operations like divide. 
> EL should be improved to enable the user to evaluate math expressions using 
> doubles.
> Another desired portion of this would be to open up the static Math class [1] 
> methods (using reflection) to further enable working with Decimals.
> [1] https://docs.oracle.com/javase/7/docs/api/java/lang/Math.html



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

Reply via email to