You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/09/13 21:53:20 UTC

[jira] [Commented] (NIFI-1662) Improve Expression Language to Enable Working with Decimals

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

ASF GitHub Bot commented on NIFI-1662:
--------------------------------------

GitHub user JPercivall opened a pull request:

    https://github.com/apache/nifi/pull/1018

    NIFI-1662 adding Expression Language decimal support

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/JPercivall/nifi NIFI-1662-2

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/1018.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1018
    
----
commit 6b6370ae1386279438bca05a2f65f7bd9d50cda9
Author: jpercivall <jo...@yahoo.com>
Date:   2016-09-13T21:40:58Z

    NIFI-1662 adding Expression Language decimal support

----


> 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)