mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2026-03-02 03:49:24 +00:00
Correct typings: toFraction returns Decimal[]
This commit is contained in:
2
decimal.d.ts
vendored
2
decimal.d.ts
vendored
@@ -232,7 +232,7 @@ export declare class Decimal {
|
|||||||
// Requires `toFormat`.
|
// Requires `toFormat`.
|
||||||
toFormat?(decimalPlaces: number, rounding: DecimalRounding): string;
|
toFormat?(decimalPlaces: number, rounding: DecimalRounding): string;
|
||||||
|
|
||||||
toFraction(max_denominator?: DecimalValue): string[];
|
toFraction(max_denominator?: DecimalValue): Decimal[];
|
||||||
|
|
||||||
toHexadecimal(significantDigits?: number): Decimal
|
toHexadecimal(significantDigits?: number): Decimal
|
||||||
toHexadecimal(significantDigits: number, rounding: DecimalRounding): Decimal
|
toHexadecimal(significantDigits: number, rounding: DecimalRounding): Decimal
|
||||||
|
|||||||
Reference in New Issue
Block a user