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:
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;
|
||||
|
||||
Reference in New Issue
Block a user