@agrozyme/numeric 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config.d.ts +3 -0
- package/lib/config.js +33 -0
- package/lib/config.js.map +1 -0
- package/lib/config.mjs +28 -0
- package/lib/config.mjs.map +1 -0
- package/lib/constants.d.ts +9 -0
- package/lib/constants.js +15 -0
- package/lib/constants.js.map +1 -0
- package/lib/constants.mjs +11 -0
- package/lib/constants.mjs.map +1 -0
- package/lib/convert.d.ts +11 -0
- package/lib/convert.js +23 -0
- package/lib/convert.js.map +1 -0
- package/lib/convert.mjs +12 -0
- package/lib/convert.mjs.map +1 -0
- package/lib/format.d.ts +18 -0
- package/lib/format.js +13 -0
- package/lib/format.js.map +1 -0
- package/lib/format.mjs +8 -0
- package/lib/format.mjs.map +1 -0
- package/lib/helper.d.ts +2 -0
- package/lib/helper.js +9 -0
- package/lib/helper.js.map +1 -0
- package/lib/helper.mjs +5 -0
- package/lib/helper.mjs.map +1 -0
- package/lib/index.d.ts +13 -158
- package/lib/index.js +32 -230
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +11 -217
- package/lib/index.mjs.map +1 -1
- package/lib/numeric.d.ts +122 -0
- package/lib/numeric.js +395 -0
- package/lib/numeric.js.map +1 -0
- package/lib/numeric.mjs +390 -0
- package/lib/numeric.mjs.map +1 -0
- package/package.json +1 -1
- package/src/config.ts +32 -0
- package/src/constants.ts +11 -0
- package/src/convert.ts +12 -0
- package/src/format.ts +25 -0
- package/src/helper.ts +6 -0
- package/src/index.ts +13 -377
- package/src/numeric.ts +517 -0
package/lib/numeric.d.ts
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { BigNumberish } from '@ethersproject/bignumber';
|
|
3
|
+
import bigInt from 'big-integer';
|
|
4
|
+
import { Decimal } from 'decimal.js';
|
|
5
|
+
import { InspectOptionsStylized } from 'node:util';
|
|
6
|
+
export type NumericValue = Numeric | Decimal.Value | bigInt.BigNumber | BigNumberish;
|
|
7
|
+
export declare class Numeric extends Decimal {
|
|
8
|
+
constructor(value: NumericValue);
|
|
9
|
+
static abs(value: NumericValue): Numeric;
|
|
10
|
+
static acos(value: NumericValue): Numeric;
|
|
11
|
+
static acosh(value: NumericValue): Numeric;
|
|
12
|
+
static add(x: NumericValue, y: NumericValue): Numeric;
|
|
13
|
+
static asin(value: NumericValue): Numeric;
|
|
14
|
+
static asinh(value: NumericValue): Numeric;
|
|
15
|
+
static atan(value: NumericValue): Numeric;
|
|
16
|
+
static atan2(x: NumericValue, y: NumericValue): Numeric;
|
|
17
|
+
static atanh(value: NumericValue): Numeric;
|
|
18
|
+
static cbrt(value: NumericValue): Numeric;
|
|
19
|
+
static ceil(value: NumericValue): Numeric;
|
|
20
|
+
static cos(value: NumericValue): Numeric;
|
|
21
|
+
static cosh(value: NumericValue): Numeric;
|
|
22
|
+
static div(x: NumericValue, y: NumericValue): Numeric;
|
|
23
|
+
static exp(value: NumericValue): Numeric;
|
|
24
|
+
static floor(value: NumericValue): Numeric;
|
|
25
|
+
static hypot(...values: NumericValue[]): Numeric;
|
|
26
|
+
static ln(value: NumericValue): Numeric;
|
|
27
|
+
static log(value: NumericValue, base?: NumericValue): Numeric;
|
|
28
|
+
static log10(value: NumericValue): Numeric;
|
|
29
|
+
static log2(value: NumericValue): Numeric;
|
|
30
|
+
static max(...values: NumericValue[]): Numeric;
|
|
31
|
+
static min(...values: NumericValue[]): Numeric;
|
|
32
|
+
static mod(x: NumericValue, y: NumericValue): Numeric;
|
|
33
|
+
static mul(x: NumericValue, y: NumericValue): Numeric;
|
|
34
|
+
static pow(base: NumericValue, exponent: NumericValue): Numeric;
|
|
35
|
+
static random(significantDigits?: number): Numeric;
|
|
36
|
+
static round(value: NumericValue): Numeric;
|
|
37
|
+
static set(object: Decimal.Config): typeof Decimal;
|
|
38
|
+
static sign(value: NumericValue): number;
|
|
39
|
+
static sin(value: NumericValue): Numeric;
|
|
40
|
+
static sinh(value: NumericValue): Numeric;
|
|
41
|
+
static sqrt(value: NumericValue): Numeric;
|
|
42
|
+
static sub(x: NumericValue, y: NumericValue): Numeric;
|
|
43
|
+
static tan(value: NumericValue): Numeric;
|
|
44
|
+
static tanh(value: NumericValue): Numeric;
|
|
45
|
+
static trunc(value: NumericValue): Numeric;
|
|
46
|
+
abs(): Numeric;
|
|
47
|
+
absoluteValue(): Numeric;
|
|
48
|
+
acos(): Numeric;
|
|
49
|
+
acosh(): Numeric;
|
|
50
|
+
add(value: NumericValue): Numeric;
|
|
51
|
+
asin(): Numeric;
|
|
52
|
+
asinh(): Numeric;
|
|
53
|
+
atan(): Numeric;
|
|
54
|
+
atanh(): Numeric;
|
|
55
|
+
cbrt(): Numeric;
|
|
56
|
+
ceil(): Numeric;
|
|
57
|
+
cmp(value: NumericValue): number;
|
|
58
|
+
comparedTo(value: NumericValue): number;
|
|
59
|
+
cos(): Numeric;
|
|
60
|
+
cosh(): Numeric;
|
|
61
|
+
cosine(): Numeric;
|
|
62
|
+
cubeRoot(): Numeric;
|
|
63
|
+
div(value: NumericValue): Numeric;
|
|
64
|
+
divToInt(value: NumericValue): Numeric;
|
|
65
|
+
dividedBy(value: NumericValue): Numeric;
|
|
66
|
+
dividedToIntegerBy(value: NumericValue): Numeric;
|
|
67
|
+
eq(value: NumericValue): boolean;
|
|
68
|
+
equals(value: NumericValue): boolean;
|
|
69
|
+
exp(): Numeric;
|
|
70
|
+
floor(): Numeric;
|
|
71
|
+
greaterThan(value: NumericValue): boolean;
|
|
72
|
+
greaterThanOrEqualTo(value: NumericValue): boolean;
|
|
73
|
+
gt(value: NumericValue): boolean;
|
|
74
|
+
gte(value: NumericValue): boolean;
|
|
75
|
+
hyperbolicCosine(): Numeric;
|
|
76
|
+
hyperbolicSine(): Numeric;
|
|
77
|
+
hyperbolicTangent(): Numeric;
|
|
78
|
+
inverseCosine(): Numeric;
|
|
79
|
+
inverseHyperbolicCosine(): Numeric;
|
|
80
|
+
inverseHyperbolicSine(): Numeric;
|
|
81
|
+
inverseHyperbolicTangent(): Numeric;
|
|
82
|
+
inverseSine(): Numeric;
|
|
83
|
+
inverseTangent(): Numeric;
|
|
84
|
+
lessThan(value: NumericValue): boolean;
|
|
85
|
+
lessThanOrEqualTo(value: NumericValue): boolean;
|
|
86
|
+
ln(): Numeric;
|
|
87
|
+
log(value?: NumericValue): Numeric;
|
|
88
|
+
logarithm(value?: NumericValue): Numeric;
|
|
89
|
+
lt(value: NumericValue): boolean;
|
|
90
|
+
lte(value: NumericValue): boolean;
|
|
91
|
+
minus(value: NumericValue): Numeric;
|
|
92
|
+
mod(value: NumericValue): Numeric;
|
|
93
|
+
modulo(value: NumericValue): Numeric;
|
|
94
|
+
mul(value: NumericValue): Numeric;
|
|
95
|
+
naturalExponential(): Numeric;
|
|
96
|
+
naturalLogarithm(): Numeric;
|
|
97
|
+
neg(): Numeric;
|
|
98
|
+
negated(): Numeric;
|
|
99
|
+
plus(value: NumericValue): Numeric;
|
|
100
|
+
pow(value: NumericValue): Numeric;
|
|
101
|
+
round(): Numeric;
|
|
102
|
+
sin(): Numeric;
|
|
103
|
+
sine(): Numeric;
|
|
104
|
+
sinh(): Numeric;
|
|
105
|
+
sqrt(): Numeric;
|
|
106
|
+
squareRoot(): Numeric;
|
|
107
|
+
sub(value: NumericValue): Numeric;
|
|
108
|
+
tan(): Numeric;
|
|
109
|
+
tangent(): Numeric;
|
|
110
|
+
tanh(): Numeric;
|
|
111
|
+
times(value: NumericValue): Numeric;
|
|
112
|
+
toDP(decimalPlaces?: number, rounding?: Decimal.Rounding): Numeric;
|
|
113
|
+
toDecimalPlaces(decimalPlaces?: number, rounding?: Decimal.Rounding): Numeric;
|
|
114
|
+
toFraction(maxDenominator?: NumericValue): Numeric[];
|
|
115
|
+
toNearest(value: NumericValue, rounding?: Decimal.Rounding): Numeric;
|
|
116
|
+
toPower(value: NumericValue): Numeric;
|
|
117
|
+
toSD(decimalPlaces?: number, rounding?: Decimal.Rounding): Numeric;
|
|
118
|
+
toSignificantDigits(decimalPlaces?: number, rounding?: Decimal.Rounding): Numeric;
|
|
119
|
+
trunc(): Numeric;
|
|
120
|
+
truncated(): Numeric;
|
|
121
|
+
inspect(depth: number, options: InspectOptionsStylized): string;
|
|
122
|
+
}
|
package/lib/numeric.js
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Numeric = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const bignumber_1 = require("@ethersproject/bignumber");
|
|
6
|
+
const bytes_1 = require("@ethersproject/bytes");
|
|
7
|
+
const big_integer_1 = tslib_1.__importDefault(require("big-integer"));
|
|
8
|
+
const bn_js_1 = tslib_1.__importDefault(require("bn.js"));
|
|
9
|
+
const browser_or_node_1 = require("browser-or-node");
|
|
10
|
+
const decimal_js_1 = require("decimal.js");
|
|
11
|
+
const convert_1 = require("./convert.js");
|
|
12
|
+
// noinspection LocalVariableNamingConventionJS
|
|
13
|
+
class Numeric extends decimal_js_1.Decimal {
|
|
14
|
+
// private readonly toStringTag: string = 'Decimal';
|
|
15
|
+
constructor(value) {
|
|
16
|
+
if (value instanceof decimal_js_1.Decimal) {
|
|
17
|
+
super(value);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
switch (typeof value) {
|
|
21
|
+
case 'string':
|
|
22
|
+
case 'number':
|
|
23
|
+
super(value);
|
|
24
|
+
break;
|
|
25
|
+
case 'bigint':
|
|
26
|
+
super(value.toString());
|
|
27
|
+
break;
|
|
28
|
+
default:
|
|
29
|
+
if (big_integer_1.default.isInstance(value) || bignumber_1.BigNumber.isBigNumber(value) || bn_js_1.default.isBN(value)) {
|
|
30
|
+
super(value.toString());
|
|
31
|
+
}
|
|
32
|
+
else if ((0, bytes_1.isBytesLike)(value)) {
|
|
33
|
+
super((0, bytes_1.hexlify)(value));
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
super(value);
|
|
37
|
+
}
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// get [Symbol.toStringTag]() {
|
|
43
|
+
// return 'Numeric';
|
|
44
|
+
// }
|
|
45
|
+
static abs(value) {
|
|
46
|
+
return new Numeric(value).abs();
|
|
47
|
+
}
|
|
48
|
+
static acos(value) {
|
|
49
|
+
return new Numeric(value).acos();
|
|
50
|
+
}
|
|
51
|
+
static acosh(value) {
|
|
52
|
+
return new Numeric(value).acosh();
|
|
53
|
+
}
|
|
54
|
+
static add(x, y) {
|
|
55
|
+
return new Numeric(x).add(y);
|
|
56
|
+
}
|
|
57
|
+
static asin(value) {
|
|
58
|
+
return new Numeric(value).asin();
|
|
59
|
+
}
|
|
60
|
+
static asinh(value) {
|
|
61
|
+
return new Numeric(value).asinh();
|
|
62
|
+
}
|
|
63
|
+
static atan(value) {
|
|
64
|
+
return new Numeric(value).atan();
|
|
65
|
+
}
|
|
66
|
+
static atan2(x, y) {
|
|
67
|
+
return new Numeric(decimal_js_1.Decimal.atan2(new Numeric(x), new Numeric(y)));
|
|
68
|
+
}
|
|
69
|
+
static atanh(value) {
|
|
70
|
+
return new Numeric(value).atanh();
|
|
71
|
+
}
|
|
72
|
+
static cbrt(value) {
|
|
73
|
+
return new Numeric(value).cbrt();
|
|
74
|
+
}
|
|
75
|
+
static ceil(value) {
|
|
76
|
+
return new Numeric(value).ceil();
|
|
77
|
+
}
|
|
78
|
+
static cos(value) {
|
|
79
|
+
return new Numeric(value).cos();
|
|
80
|
+
}
|
|
81
|
+
static cosh(value) {
|
|
82
|
+
return new Numeric(value).cosh();
|
|
83
|
+
}
|
|
84
|
+
static div(x, y) {
|
|
85
|
+
return new Numeric(x).div(y);
|
|
86
|
+
}
|
|
87
|
+
static exp(value) {
|
|
88
|
+
return new Numeric(value).exp();
|
|
89
|
+
}
|
|
90
|
+
static floor(value) {
|
|
91
|
+
return new Numeric(value).floor();
|
|
92
|
+
}
|
|
93
|
+
static hypot(...values) {
|
|
94
|
+
return new Numeric(decimal_js_1.Decimal.hypot(...(0, convert_1.toNumerics)(values)));
|
|
95
|
+
}
|
|
96
|
+
static ln(value) {
|
|
97
|
+
return new Numeric(value).ln();
|
|
98
|
+
}
|
|
99
|
+
static log(value, base) {
|
|
100
|
+
return new Numeric(value).log(base);
|
|
101
|
+
}
|
|
102
|
+
static log10(value) {
|
|
103
|
+
return new Numeric(value).log(10);
|
|
104
|
+
}
|
|
105
|
+
static log2(value) {
|
|
106
|
+
return new Numeric(value).log(2);
|
|
107
|
+
}
|
|
108
|
+
static max(...values) {
|
|
109
|
+
return new Numeric(decimal_js_1.Decimal.max(...(0, convert_1.toNumerics)(values)));
|
|
110
|
+
}
|
|
111
|
+
static min(...values) {
|
|
112
|
+
return new Numeric(decimal_js_1.Decimal.min(...(0, convert_1.toNumerics)(values)));
|
|
113
|
+
}
|
|
114
|
+
static mod(x, y) {
|
|
115
|
+
return new Numeric(x).mod(y);
|
|
116
|
+
}
|
|
117
|
+
static mul(x, y) {
|
|
118
|
+
return new Numeric(x).mul(y);
|
|
119
|
+
}
|
|
120
|
+
static pow(base, exponent) {
|
|
121
|
+
return new Numeric(base).pow(exponent);
|
|
122
|
+
}
|
|
123
|
+
static random(significantDigits) {
|
|
124
|
+
return new Numeric(decimal_js_1.Decimal.random(significantDigits));
|
|
125
|
+
}
|
|
126
|
+
static round(value) {
|
|
127
|
+
return new Numeric(value).round();
|
|
128
|
+
}
|
|
129
|
+
static set(object) {
|
|
130
|
+
return decimal_js_1.Decimal.set(object);
|
|
131
|
+
}
|
|
132
|
+
static sign(value) {
|
|
133
|
+
return decimal_js_1.Decimal.sign(new Numeric(value));
|
|
134
|
+
}
|
|
135
|
+
static sin(value) {
|
|
136
|
+
return new Numeric(value).sin();
|
|
137
|
+
}
|
|
138
|
+
static sinh(value) {
|
|
139
|
+
return new Numeric(value).sinh();
|
|
140
|
+
}
|
|
141
|
+
static sqrt(value) {
|
|
142
|
+
return new Numeric(value).sqrt();
|
|
143
|
+
}
|
|
144
|
+
static sub(x, y) {
|
|
145
|
+
return new Numeric(x).sub(y);
|
|
146
|
+
}
|
|
147
|
+
static tan(value) {
|
|
148
|
+
return new Numeric(value).tan();
|
|
149
|
+
}
|
|
150
|
+
static tanh(value) {
|
|
151
|
+
return new Numeric(value).tanh();
|
|
152
|
+
}
|
|
153
|
+
static trunc(value) {
|
|
154
|
+
return new Numeric(value).trunc();
|
|
155
|
+
}
|
|
156
|
+
abs() {
|
|
157
|
+
return new Numeric(super.abs());
|
|
158
|
+
}
|
|
159
|
+
absoluteValue() {
|
|
160
|
+
return new Numeric(super.absoluteValue());
|
|
161
|
+
}
|
|
162
|
+
acos() {
|
|
163
|
+
return new Numeric(super.acos());
|
|
164
|
+
}
|
|
165
|
+
acosh() {
|
|
166
|
+
return new Numeric(super.acosh());
|
|
167
|
+
}
|
|
168
|
+
add(value) {
|
|
169
|
+
return new Numeric(super.add(new Numeric(value)));
|
|
170
|
+
}
|
|
171
|
+
asin() {
|
|
172
|
+
return new Numeric(super.asin());
|
|
173
|
+
}
|
|
174
|
+
asinh() {
|
|
175
|
+
return new Numeric(super.asinh());
|
|
176
|
+
}
|
|
177
|
+
atan() {
|
|
178
|
+
return new Numeric(super.atan());
|
|
179
|
+
}
|
|
180
|
+
atanh() {
|
|
181
|
+
return new Numeric(super.atanh());
|
|
182
|
+
}
|
|
183
|
+
cbrt() {
|
|
184
|
+
return new Numeric(super.cbrt());
|
|
185
|
+
}
|
|
186
|
+
ceil() {
|
|
187
|
+
return new Numeric(super.ceil());
|
|
188
|
+
}
|
|
189
|
+
cmp(value) {
|
|
190
|
+
return super.cmp(new Numeric(value));
|
|
191
|
+
}
|
|
192
|
+
comparedTo(value) {
|
|
193
|
+
return super.comparedTo(new Numeric(value));
|
|
194
|
+
}
|
|
195
|
+
cos() {
|
|
196
|
+
return new Numeric(super.cos());
|
|
197
|
+
}
|
|
198
|
+
cosh() {
|
|
199
|
+
return new Numeric(super.cosh());
|
|
200
|
+
}
|
|
201
|
+
cosine() {
|
|
202
|
+
return new Numeric(super.cosine());
|
|
203
|
+
}
|
|
204
|
+
cubeRoot() {
|
|
205
|
+
return new Numeric(super.cubeRoot());
|
|
206
|
+
}
|
|
207
|
+
div(value) {
|
|
208
|
+
return new Numeric(super.div(new Numeric(value)));
|
|
209
|
+
}
|
|
210
|
+
divToInt(value) {
|
|
211
|
+
return new Numeric(super.divToInt(new Numeric(value)));
|
|
212
|
+
}
|
|
213
|
+
dividedBy(value) {
|
|
214
|
+
return new Numeric(super.dividedBy(new Numeric(value)));
|
|
215
|
+
}
|
|
216
|
+
dividedToIntegerBy(value) {
|
|
217
|
+
return new Numeric(super.dividedToIntegerBy(new Numeric(value)));
|
|
218
|
+
}
|
|
219
|
+
eq(value) {
|
|
220
|
+
return super.eq(new Numeric(value));
|
|
221
|
+
}
|
|
222
|
+
equals(value) {
|
|
223
|
+
return super.equals(new Numeric(value));
|
|
224
|
+
}
|
|
225
|
+
exp() {
|
|
226
|
+
return new Numeric(super.exp());
|
|
227
|
+
}
|
|
228
|
+
floor() {
|
|
229
|
+
return new Numeric(super.floor());
|
|
230
|
+
}
|
|
231
|
+
greaterThan(value) {
|
|
232
|
+
return super.greaterThan(new Numeric(value));
|
|
233
|
+
}
|
|
234
|
+
greaterThanOrEqualTo(value) {
|
|
235
|
+
return super.greaterThanOrEqualTo(new Numeric(value));
|
|
236
|
+
}
|
|
237
|
+
gt(value) {
|
|
238
|
+
return super.gt(new Numeric(value));
|
|
239
|
+
}
|
|
240
|
+
gte(value) {
|
|
241
|
+
return super.gte(new Numeric(value));
|
|
242
|
+
}
|
|
243
|
+
hyperbolicCosine() {
|
|
244
|
+
return new Numeric(super.hyperbolicCosine());
|
|
245
|
+
}
|
|
246
|
+
hyperbolicSine() {
|
|
247
|
+
return new Numeric(super.hyperbolicSine());
|
|
248
|
+
}
|
|
249
|
+
hyperbolicTangent() {
|
|
250
|
+
return new Numeric(super.hyperbolicTangent());
|
|
251
|
+
}
|
|
252
|
+
inverseCosine() {
|
|
253
|
+
return new Numeric(super.inverseCosine());
|
|
254
|
+
}
|
|
255
|
+
inverseHyperbolicCosine() {
|
|
256
|
+
return new Numeric(super.inverseHyperbolicCosine());
|
|
257
|
+
}
|
|
258
|
+
inverseHyperbolicSine() {
|
|
259
|
+
return new Numeric(super.inverseHyperbolicSine());
|
|
260
|
+
}
|
|
261
|
+
inverseHyperbolicTangent() {
|
|
262
|
+
return new Numeric(super.inverseHyperbolicTangent());
|
|
263
|
+
}
|
|
264
|
+
inverseSine() {
|
|
265
|
+
return new Numeric(super.inverseSine());
|
|
266
|
+
}
|
|
267
|
+
inverseTangent() {
|
|
268
|
+
return new Numeric(super.inverseTangent());
|
|
269
|
+
}
|
|
270
|
+
lessThan(value) {
|
|
271
|
+
return super.lessThan(new Numeric(value));
|
|
272
|
+
}
|
|
273
|
+
lessThanOrEqualTo(value) {
|
|
274
|
+
return super.lessThanOrEqualTo(new Numeric(value));
|
|
275
|
+
}
|
|
276
|
+
ln() {
|
|
277
|
+
return new Numeric(super.ln());
|
|
278
|
+
}
|
|
279
|
+
log(value) {
|
|
280
|
+
return new Numeric(super.log(undefined === value ? undefined : new Numeric(value)));
|
|
281
|
+
}
|
|
282
|
+
logarithm(value) {
|
|
283
|
+
return new Numeric(super.logarithm(undefined === value ? undefined : new Numeric(value)));
|
|
284
|
+
}
|
|
285
|
+
lt(value) {
|
|
286
|
+
return super.lt(new Numeric(value));
|
|
287
|
+
}
|
|
288
|
+
lte(value) {
|
|
289
|
+
return super.lte(new Numeric(value));
|
|
290
|
+
}
|
|
291
|
+
minus(value) {
|
|
292
|
+
return new Numeric(super.minus(new Numeric(value)));
|
|
293
|
+
}
|
|
294
|
+
mod(value) {
|
|
295
|
+
return new Numeric(super.mod(new Numeric(value)));
|
|
296
|
+
}
|
|
297
|
+
modulo(value) {
|
|
298
|
+
return new Numeric(super.modulo(new Numeric(value)));
|
|
299
|
+
}
|
|
300
|
+
mul(value) {
|
|
301
|
+
return new Numeric(super.mul(new Numeric(value)));
|
|
302
|
+
}
|
|
303
|
+
naturalExponential() {
|
|
304
|
+
return new Numeric(super.naturalExponential());
|
|
305
|
+
}
|
|
306
|
+
naturalLogarithm() {
|
|
307
|
+
return new Numeric(super.naturalLogarithm());
|
|
308
|
+
}
|
|
309
|
+
neg() {
|
|
310
|
+
return new Numeric(super.neg());
|
|
311
|
+
}
|
|
312
|
+
negated() {
|
|
313
|
+
return new Numeric(super.negated());
|
|
314
|
+
}
|
|
315
|
+
plus(value) {
|
|
316
|
+
return new Numeric(super.plus(new Numeric(value)));
|
|
317
|
+
}
|
|
318
|
+
pow(value) {
|
|
319
|
+
return new Numeric(super.pow(new Numeric(value)));
|
|
320
|
+
}
|
|
321
|
+
round() {
|
|
322
|
+
return new Numeric(super.round());
|
|
323
|
+
}
|
|
324
|
+
sin() {
|
|
325
|
+
return new Numeric(super.sin());
|
|
326
|
+
}
|
|
327
|
+
sine() {
|
|
328
|
+
return new Numeric(super.sine());
|
|
329
|
+
}
|
|
330
|
+
sinh() {
|
|
331
|
+
return new Numeric(super.sinh());
|
|
332
|
+
}
|
|
333
|
+
sqrt() {
|
|
334
|
+
return new Numeric(super.sqrt());
|
|
335
|
+
}
|
|
336
|
+
squareRoot() {
|
|
337
|
+
return new Numeric(super.squareRoot());
|
|
338
|
+
}
|
|
339
|
+
sub(value) {
|
|
340
|
+
return new Numeric(super.sub(new Numeric(value)));
|
|
341
|
+
}
|
|
342
|
+
tan() {
|
|
343
|
+
return new Numeric(super.tan());
|
|
344
|
+
}
|
|
345
|
+
tangent() {
|
|
346
|
+
return new Numeric(super.tangent());
|
|
347
|
+
}
|
|
348
|
+
tanh() {
|
|
349
|
+
return new Numeric(super.tanh());
|
|
350
|
+
}
|
|
351
|
+
times(value) {
|
|
352
|
+
return new Numeric(super.times(new Numeric(value)));
|
|
353
|
+
}
|
|
354
|
+
toDP(decimalPlaces, rounding) {
|
|
355
|
+
return new Numeric(undefined !== rounding && undefined !== decimalPlaces
|
|
356
|
+
? super.toDP(decimalPlaces, rounding)
|
|
357
|
+
: super.toDP(decimalPlaces));
|
|
358
|
+
}
|
|
359
|
+
toDecimalPlaces(decimalPlaces, rounding) {
|
|
360
|
+
return new Numeric(undefined !== rounding && undefined !== decimalPlaces
|
|
361
|
+
? super.toDecimalPlaces(decimalPlaces, rounding)
|
|
362
|
+
: super.toDecimalPlaces(decimalPlaces));
|
|
363
|
+
}
|
|
364
|
+
toFraction(maxDenominator) {
|
|
365
|
+
return (0, convert_1.toNumerics)(super.toFraction(undefined === maxDenominator ? undefined : new Numeric(maxDenominator)));
|
|
366
|
+
}
|
|
367
|
+
toNearest(value, rounding) {
|
|
368
|
+
return new Numeric(super.toNearest(new Numeric(value), rounding));
|
|
369
|
+
}
|
|
370
|
+
toPower(value) {
|
|
371
|
+
return new Numeric(super.toPower(new Numeric(value)));
|
|
372
|
+
}
|
|
373
|
+
toSD(decimalPlaces, rounding) {
|
|
374
|
+
return new Numeric(undefined !== rounding && undefined !== decimalPlaces
|
|
375
|
+
? super.toSD(decimalPlaces, rounding)
|
|
376
|
+
: super.toSD(decimalPlaces));
|
|
377
|
+
}
|
|
378
|
+
toSignificantDigits(decimalPlaces, rounding) {
|
|
379
|
+
return new Numeric(undefined !== rounding && undefined !== decimalPlaces
|
|
380
|
+
? super.toSignificantDigits(decimalPlaces, rounding)
|
|
381
|
+
: super.toSignificantDigits(decimalPlaces));
|
|
382
|
+
}
|
|
383
|
+
trunc() {
|
|
384
|
+
return new Numeric(super.trunc());
|
|
385
|
+
}
|
|
386
|
+
truncated() {
|
|
387
|
+
return new Numeric(super.truncated());
|
|
388
|
+
}
|
|
389
|
+
inspect(depth, options) {
|
|
390
|
+
const value = this.toFixed();
|
|
391
|
+
return browser_or_node_1.isNode ? options.stylize(value, 'bigint') : value;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
exports.Numeric =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