commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1050) Deprecate "pow(int, long)" and "pow(long,long)" in "ArithmeticUtils"
Date Wed, 30 Oct 2013 20:29:26 GMT

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

Gilles commented on MATH-1050:
------------------------------

Deprecation introduced in revision 1537279.

Methods to be removed before releasing the next major version.


> Deprecate "pow(int, long)" and "pow(long,long)" in "ArithmeticUtils"
> --------------------------------------------------------------------
>
>                 Key: MATH-1050
>                 URL: https://issues.apache.org/jira/browse/MATH-1050
>             Project: Commons Math
>          Issue Type: Task
>    Affects Versions: 3.2
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Trivial
>              Labels: API, deprecation
>             Fix For: 4.0, 3.3
>
>
> Those two methods uses a "long" for the exponent, but overflow will occur when the exponent
is larger than 31 (except for the trivial case where the base is 1).
> See also [this thread|http://markmail.org/message/nhnst5eryqyudxfy] on the dev ML.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message