Skip to content

Commit 0798cad

Browse files
authored
Merge pull request ta4j#1110 from nimo23/patch-4
Update DecimalNum: `valueOf(DoubleNum)`
2 parents 85f4b2d + 3cf2ac2 commit 0798cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ta4j-core/src/main/java/org/ta4j/core/num/DecimalNum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public static DecimalNum valueOf(Number val) {
187187
* @throws NumberFormatException if {@code val} is {@code "NaN"}
188188
*/
189189
public static DecimalNum valueOf(DoubleNum val) {
190-
return valueOf(val.toString());
190+
return valueOf(val.doubleValue());
191191
}
192192

193193
/**

0 commit comments

Comments
 (0)