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]