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/19 13:24:00 UTC

[jira] [Resolved] (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 resolved GROOVY-9198.
-------------------------------
       Resolution: Fixed
         Assignee: Paul King
    Fix Version/s: 3.0.0-beta-3

Proposed PR merged.

> 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
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 3.0.0-beta-3
>
>
> 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)