You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Divides the current Decimal instance by the provided value.
70
70
* Throws if the resulting value cannot be represented with a fixed number of decimals (like 1/3).
71
-
* If you need to divide by such a value, use the optional `significantDigits` parameter to specify the number of significant digits.
71
+
* If you need to divide by such a value, use the optional `significantDigits` parameter to specify the number of significant digits to use in the result.
72
72
* @param value The value to divide by.
73
-
* @param significantDigits The optional number of significant digits to use in the result.
73
+
* @param significantDigits The number of significant digits to use in the result.
74
74
* @returns A new Decimal instance representing the result of the division.
@@ -374,7 +380,7 @@ export default class Decimal {
374
380
375
381
/**
376
382
* Converts the current Decimal instance to a bigint, if it is an integer.
377
-
* @throws Will throw an error if the Decimal instance is not an integer.
383
+
* Throws an error if the Decimal instance is not an integer.
378
384
* @returns A bigint representing the integer value of the Decimal instance.
379
385
*/
380
386
toBigInt(): bigint{
@@ -481,10 +487,10 @@ export default class Decimal {
481
487
/**
482
488
* Divides one value by another.
483
489
* Throws if the resulting value cannot be represented with a fixed number of decimals (like 1/3).
484
-
* If you need to divide by such a value, use the optional `significantDigits` parameter to specify the number of significant digits.
490
+
* If you need to divide by such a value, use the optional `significantDigits` parameter to specify the number of significant digits to use in the result.
485
491
* @param dividend The value to divide.
486
492
* @param divisor The value to divide by.
487
-
* @param significantDigits The optional number of significant digits in the result.
493
+
* @param significantDigits The number of significant digits to use in the result.
488
494
* @returns A new Decimal instance representing the quotient.
0 commit comments