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:
2
decimal.d.ts
vendored
2
decimal.d.ts
vendored
@@ -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
2
decimal.global.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user