Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 9963039

Browse files
committed
Use correct class name
1 parent f001110 commit 9963039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/step.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const ten = new Decimal128("10");
66

77
function stepUp(d, n, x) {
88
let increment = pow(ten, x);
9-
return d.add(n.times(increment));
9+
return d.add(n.multiply(increment));
1010
}
1111

1212
let starting = new Decimal128("1.23");
13-
let stepped = stepUp(starting, new Decimal128("3"), new Decimal("-4"));
13+
let stepped = stepUp(starting, new Decimal128("3"), new Decimal128("-4"));
1414
console.log(stepped.toString({ numDecimalDigits: 4 })); // 1.2305

0 commit comments

Comments
 (0)