[
https://issues.apache.org/jira/browse/NUMBERS-150?focusedWorklogId=474468&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-474468
]
ASF GitHub Bot logged work on NUMBERS-150:
------------------------------------------
Author: ASF GitHub Bot
Created on: 25/Aug/20 19:13
Start Date: 25/Aug/20 19:13
Worklog Time Spent: 10m
Work Description: aherbert commented on pull request #83:
URL: https://github.com/apache/commons-numbers/pull/83#issuecomment-680218479
Your current code **is** throwing an exception for Fraction(0/1).pow(-1):
```java
if (isZero()) {
if (exponent < 0) {
throw new
ArithmeticException(STRING_THE_DENOMINATOR_MUST_NOT_BE_ZERO);
```
You even have tests to show this. So yes, this is the correct code as it
stands.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 474468)
Time Spent: 2h 10m (was: 2h)
> Fraction.pow to correctly handle Integer.MIN_VALUE as the argument
> ------------------------------------------------------------------
>
> Key: NUMBERS-150
> URL: https://issues.apache.org/jira/browse/NUMBERS-150
> Project: Commons Numbers
> Issue Type: Bug
> Components: fraction
> Reporter: Jin Xu
> Priority: Major
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> a bug was discovered by [NUMBERS-149].
> here is the fix pr.
> https://github.com/apache/commons-numbers/pull/83
--
This message was sent by Atlassian Jira
(v8.3.4#803005)