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 Thu, 20 Feb 2014 10:25:19 GMT

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

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

Hi Luc.


                         ^^^^
I think that the issue should be kept open until the method is
actually deleted.

Regards,
Gilles



> 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.5#6160)

Mime
View raw message