1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-22 03:44:19 +00:00

Merge pull request #264 from jeremy-code/to-fraction-typescript

Update toFraction return type to tuple
This commit is contained in:
Michael M
2026-08-30 21:11:56 +01:00
committed by GitHub
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;

2
decimal.global.d.ts vendored
View File

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