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

Commit 1e5abb5

Browse files
committed
Ensure rounding
1 parent f13cea2 commit 1e5abb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decimal128.mts

+1-1
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ export class Decimal128 {
946946
}
947947

948948
let opts = ensureFullySpecifiedToStringOptions({ numDecimalDigits });
949-
return this.emitDecimal(opts);
949+
return this.round(n).emitDecimal(opts);
950950
}
951951

952952
toPrecision(n?: number): string

0 commit comments

Comments
 (0)