We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a07d42a commit 3cf2ac2Copy full SHA for 3cf2ac2
ta4j-core/src/main/java/org/ta4j/core/num/DecimalNum.java
@@ -187,7 +187,7 @@ public static DecimalNum valueOf(Number val) {
187
* @throws NumberFormatException if {@code val} is {@code "NaN"}
188
*/
189
public static DecimalNum valueOf(DoubleNum val) {
190
- return valueOf(val.toString());
+ return valueOf(val.doubleValue());
191
}
192
193
/**
0 commit comments