1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2024-10-27 20:34:12 +00:00

Update definitions with sum and clamp

This commit is contained in:
Michael Mclaughlin 2021-06-22 12:50:27 +01:00
parent d102ead7af
commit 69e91fecd2
2 changed files with 10 additions and 0 deletions

5
decimal.d.ts vendored
View File

@ -64,6 +64,9 @@ export declare class Decimal {
abs(): Decimal; abs(): Decimal;
ceil(): Decimal; ceil(): Decimal;
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
comparedTo(n: Decimal.Value): number; comparedTo(n: Decimal.Value): number;
cmp(n: Decimal.Value): number; cmp(n: Decimal.Value): number;
@ -239,6 +242,7 @@ export declare class Decimal {
static atan2(y: Decimal.Value, x: Decimal.Value): Decimal; static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
static cbrt(n: Decimal.Value): Decimal; static cbrt(n: Decimal.Value): Decimal;
static ceil(n: Decimal.Value): Decimal; static ceil(n: Decimal.Value): Decimal;
static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
static clone(object?: Decimal.Config): Decimal.Constructor; static clone(object?: Decimal.Config): Decimal.Constructor;
static config(object: Decimal.Config): Decimal.Constructor; static config(object: Decimal.Config): Decimal.Constructor;
static cos(n: Decimal.Value): Decimal; static cos(n: Decimal.Value): Decimal;
@ -266,6 +270,7 @@ export declare class Decimal {
static sinh(n: Decimal.Value): Decimal; static sinh(n: Decimal.Value): Decimal;
static sqrt(n: Decimal.Value): Decimal; static sqrt(n: Decimal.Value): Decimal;
static sub(x: Decimal.Value, y: Decimal.Value): Decimal; static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
static sum(...n: Decimal.Value[]): Decimal;
static tan(n: Decimal.Value): Decimal; static tan(n: Decimal.Value): Decimal;
static tanh(n: Decimal.Value): Decimal; static tanh(n: Decimal.Value): Decimal;
static trunc(n: Decimal.Value): Decimal; static trunc(n: Decimal.Value): Decimal;

5
decimal.global.d.ts vendored
View File

@ -85,6 +85,9 @@ export declare class Decimal {
abs(): Decimal; abs(): Decimal;
ceil(): Decimal; ceil(): Decimal;
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
comparedTo(n: DecimalValue): number; comparedTo(n: DecimalValue): number;
cmp(n: DecimalValue): number; cmp(n: DecimalValue): number;
@ -260,6 +263,7 @@ export declare class Decimal {
static atan2(y: DecimalValue, x: DecimalValue): Decimal; static atan2(y: DecimalValue, x: DecimalValue): Decimal;
static cbrt(n: DecimalValue): Decimal; static cbrt(n: DecimalValue): Decimal;
static ceil(n: DecimalValue): Decimal; static ceil(n: DecimalValue): Decimal;
static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
static clone(object?: DecimalConfig): DecimalConstructor; static clone(object?: DecimalConfig): DecimalConstructor;
static config(object: DecimalConfig): DecimalConstructor; static config(object: DecimalConfig): DecimalConstructor;
static cos(n: DecimalValue): Decimal; static cos(n: DecimalValue): Decimal;
@ -287,6 +291,7 @@ export declare class Decimal {
static sinh(n: DecimalValue): Decimal; static sinh(n: DecimalValue): Decimal;
static sqrt(n: DecimalValue): Decimal; static sqrt(n: DecimalValue): Decimal;
static sub(x: DecimalValue, y: DecimalValue): Decimal; static sub(x: DecimalValue, y: DecimalValue): Decimal;
static sum(...n: Decimal.Value[]): Decimal;
static tan(n: DecimalValue): Decimal; static tan(n: DecimalValue): Decimal;
static tanh(n: DecimalValue): Decimal; static tanh(n: DecimalValue): Decimal;
static trunc(n: DecimalValue): Decimal; static trunc(n: DecimalValue): Decimal;