Skip to content

Commit

Permalink
fixed files form Math #17
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 472dbe4 commit e024b59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/Math/17/org/apache/commons/math3/dfp/Dfp.java
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,11 @@ public Dfp multiply(final Dfp x) {
* @return product of this and x
*/
public Dfp multiply(final int x) {
if (x >= 0 && x < RADIX) {
return multiplyFast(x);
} else {
return multiply(newInstance(x));
}
}

/** Multiply this by a single digit 0&lt;=x&lt;radix.
Expand Down

0 comments on commit e024b59

Please sign in to comment.