commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-912) MathUtils.sum() method to add together a bunch of numbers.
Date Sun, 01 Sep 2013 19:57:52 GMT

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

Sebb commented on LANG-912:
---------------------------

MathUtils already has max(...) and min(...) for the various primitive types.

Is sum(...) so different it belongs in MATH ?
                
> MathUtils.sum() method to add together a bunch of numbers.
> ----------------------------------------------------------
>
>                 Key: LANG-912
>                 URL: https://issues.apache.org/jira/browse/LANG-912
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.math.*
>    Affects Versions: 3.1
>         Environment: Any
>            Reporter: Matt Bishop
>            Priority: Minor
>             Fix For: 3.2
>
>
> I find myself doing sums frequently with a variety of numbers. It would be nice if MathUtils
had a method like this:
>     int add(int... numbers);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message