1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-24 12:54:47 +00:00

Update toFraction return type to tuple

This commit is contained in:
Jeremy Nguyen
2026-08-29 19:10:38 -07:00
parent cd73a7f830
commit a294180ad4
2 changed files with 2 additions and 2 deletions

2
decimal.d.ts vendored
View File

@@ -196,7 +196,7 @@ export declare class Decimal {
toFixed(decimalPlaces?: number): string;
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
toFraction(max_denominator?: Decimal.Value): Decimal[];
toFraction(max_denominator?: Decimal.Value): [numerator: Decimal, denominator: Decimal];
toHexadecimal(significantDigits?: number): string;
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;