mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2026-09-24 21:04:32 +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): string;
|
||||||
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): 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): string;
|
||||||
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): 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): string;
|
||||||
toFixed(decimalPlaces: number, rounding: DecimalRounding): 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): string;
|
||||||
toHexadecimal(significantDigits: number, rounding: DecimalRounding): string;
|
toHexadecimal(significantDigits: number, rounding: DecimalRounding): string;
|
||||||
|
|||||||
Reference in New Issue
Block a user