You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2019/07/18 14:57:00 UTC

[jira] [Updated] (GROOVY-9198) We should provide an average/mean DGM method similar to Kotlin

     [ https://issues.apache.org/jira/browse/GROOVY-9198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King updated GROOVY-9198:
------------------------------
    Description: I propose to use a return type of double for double and float primitive arrays and BigDecimal for other Number arrays, Object will be used for the other methods. The intention is to give the same result you would get if you used {{sum()}} and then divided by the total count of objects by hand.

> We should provide an average/mean DGM method similar to Kotlin
> --------------------------------------------------------------
>
>                 Key: GROOVY-9198
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9198
>             Project: Groovy
>          Issue Type: New Feature
>            Reporter: Paul King
>            Priority: Major
>
> I propose to use a return type of double for double and float primitive arrays and BigDecimal for other Number arrays, Object will be used for the other methods. The intention is to give the same result you would get if you used {{sum()}} and then divided by the total count of objects by hand.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)