This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Commit 4379001 1 parent 900d4a7 commit 4379001 Copy full SHA for 4379001
File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ## [ 12.2.0] - 2024-04-15
11
+
12
+ ### Changed
13
+
14
+ - The remainder operation no longer takes an optional argument for specifying the rounding mode. It is unnecessary.
15
+
10
16
## [ 12.1.0] - 2024-04-11
11
17
12
18
### Added
Original file line number Diff line number Diff line change @@ -1534,10 +1534,9 @@ export class Decimal128 {
1534
1534
* Return the remainder of this Decimal128 value divided by another Decimal128 value.
1535
1535
*
1536
1536
* @param d
1537
- * @param opts
1538
1537
* @throws RangeError If argument is zero
1539
1538
*/
1540
- remainder ( d : Decimal128 , opts ?: ArithmeticOperationOptions ) : Decimal128 {
1539
+ remainder ( d : Decimal128 ) : Decimal128 {
1541
1540
if ( this . isNaN || d . isNaN ) {
1542
1541
return new Decimal128 ( NAN ) ;
1543
1542
}
@@ -1563,7 +1562,7 @@ export class Decimal128 {
1563
1562
}
1564
1563
1565
1564
let q = this . divide ( d ) . round ( 0 , ROUNDING_MODE_TRUNCATE ) ;
1566
- return this . subtract ( d . multiply ( q ) , opts ) ;
1565
+ return this . subtract ( d . multiply ( q ) ) ;
1567
1566
}
1568
1567
1569
1568
private decrementExponent ( ) : Decimal128 {
You can’t perform that action at this time.
0 commit comments