Details

Type: Bug

Status: Closed

Priority: Major

Resolution: Fixed

Affects Version/s: 3.0

Fix Version/s: 3.1

Labels:None
Description
In class org.apache.commons.math3.Dfp, the method multiply(int n) is limited to 0 <= n <= 9999. This is not consistent with the general contract of FieldElement.multiply(int n), where there should be no limitation on the values of n.
Activity
 All
 Comments
 Work Log
 History
 Activity
 Transitions
Hi,
I looked at this issue, and if I understand it correctly, the current multiply(int) method is using a performance shortcut for values of x between 0 and RADIX.
I did a very simple patch to implement the following logic: