@fileverse-dev/formulajs 4.4.11-mod-6 → 4.4.11-mod-7

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.
@@ -23,21 +23,6 @@ export function ABS(number: any): number | Error;
23
23
  * @returns
24
24
  */
25
25
  export function ACCRINT(issue: any, first_interest: any, settlement: any, rate: any, par: any, frequency: any, basis: any): number | Error;
26
- /**
27
- * -- Not implemented --
28
- *
29
- * Returns the accrued interest for a security that pays interest at maturity.
30
- *
31
- * Category: Financial
32
- *
33
- * @param {*} issue The security's issue date.
34
- * @param {*} settlement The security's maturity date.
35
- * @param {*} rate The security's annual coupon rate.
36
- * @param {*} par The security's par value. If you omit par, ACCRINTM uses $1,000.
37
- * @param {*} basis Optional. The type of day count basis to use.
38
- * @returns
39
- */
40
- export function ACCRINTM(): void;
41
26
  /**
42
27
  * Returns the arccosine of a number.
43
28
  *
@@ -86,40 +71,6 @@ export function ACOTH(number: any): number | Error;
86
71
  * @returns
87
72
  */
88
73
  export function AGGREGATE(function_num: any, options: any, ref1: any, ref2: any): any;
89
- /**
90
- * -- Not implemented --
91
- *
92
- * Returns the depreciation for each accounting period by using a depreciation coefficient.
93
- *
94
- * Category: Financial
95
- *
96
- * @param {*} cost The cost of the asset.
97
- * @param {*} date_purchased The date of the purchase of the asset.
98
- * @param {*} first_period The date of the end of the first period.
99
- * @param {*} salvage The salvage value at the end of the life of the asset.
100
- * @param {*} period The period.
101
- * @param {*} rate The rate of depreciation.
102
- * @param {*} basis Optional. The year basis to be used.
103
- * @returns
104
- */
105
- export function AMORDEGRC(): void;
106
- /**
107
- * -- Not implemented --
108
- *
109
- * Returns the depreciation for each accounting period.
110
- *
111
- * Category: Financial
112
- *
113
- * @param {*} cost The cost of the asset.
114
- * @param {*} date_purchased The date of the purchase of the asset.
115
- * @param {*} first_period The date of the end of the first period.
116
- * @param {*} salvage The salvage value at the end of the life of the asset.
117
- * @param {*} period The period.
118
- * @param {*} rate The rate of depreciation.
119
- * @param {*} basis Optional. The year basis to be used.
120
- * @returns
121
- */
122
- export function AMORLINC(): void;
123
74
  /**
124
75
  * Returns TRUE if all of its arguments are TRUE.
125
76
  *
@@ -137,17 +88,6 @@ export function AND(...args: any[]): any;
137
88
  * @returns
138
89
  */
139
90
  export function ARABIC(text: any): number | Error;
140
- /**
141
- * -- Not implemented --
142
- *
143
- * Changes full-width (double-byte) English letters or katakana within a character string to half-width (single-byte) characters.
144
- *
145
- * Category: Text
146
- *
147
- * @param {*} text The text or a reference to a value that contains the text you want to change. If text does not contain any full-width letters, text is not changed.
148
- * @returns
149
- */
150
- export function ASC(): void;
151
91
  /**
152
92
  * Returns the arcsine of a number.
153
93
  *
@@ -241,17 +181,6 @@ export function AVERAGEIF(range: any, criteria: any, average_range: any, ...args
241
181
  * @returns
242
182
  */
243
183
  export function AVERAGEIFS(...args: any[]): number;
244
- /**
245
- * -- Not implemented --
246
- *
247
- * Converts a number to text, using the ß (baht) currency format.
248
- *
249
- * Category: Text
250
- *
251
- * @param {*} number A number you want to convert to text, or a reference to a value containing a number, or a formula that evaluates to a number.
252
- * @returns
253
- */
254
- export function BAHTTEXT(): void;
255
184
  /**
256
185
  * Converts a number into a text representation with the given radix (base).
257
186
  *
@@ -545,16 +474,6 @@ export function CEILINGMATH(number: any, significance: any, mode?: any): any;
545
474
  * @returns
546
475
  */
547
476
  export function CEILINGPRECISE(number: any, significance: any): any;
548
- /**
549
- * -- Not implemented --
550
- *
551
- * Returns information about the formatting, location, or contents of a value.
552
- *
553
- * Category: Information
554
- *
555
- * @returns
556
- */
557
- export function CELL(): void;
558
477
  /**
559
478
  * Returns the character specified by the code number.
560
479
  *
@@ -896,20 +815,6 @@ export function COUNTIF(range: any, criteria: any): any;
896
815
  * @returns
897
816
  */
898
817
  export function COUNTIFS(...args: any[]): number;
899
- /**
900
- * -- Not implemented --
901
- *
902
- * Returns the number of days from the beginning of the coupon period to the settlement date.
903
- *
904
- * Category: Financial
905
- *
906
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
907
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
908
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
909
- * @param {*} basis Optional. The type of day count basis to use.
910
- * @returns
911
- */
912
- export function COUPDAYBS(): void;
913
818
  /**
914
819
  *
915
820
  * Returns the number of days in the coupon period that contains the settlement date.
@@ -923,62 +828,6 @@ export function COUPDAYBS(): void;
923
828
  * @returns
924
829
  */
925
830
  export function COUPDAYS(settlement: any, maturity: any, frequency: any, basis: any): number | Error;
926
- /**
927
- * -- Not implemented --
928
- *
929
- * Returns the number of days from the settlement date to the next coupon date.
930
- *
931
- * Category: Financial
932
- *
933
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
934
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
935
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
936
- * @param {*} basis Optional. The type of day count basis to use.
937
- * @returns
938
- */
939
- export function COUPDAYSNC(): void;
940
- /**
941
- * -- Not implemented --
942
- *
943
- * Returns the next coupon date after the settlement date.
944
- *
945
- * Category: Financial
946
- *
947
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
948
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
949
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
950
- * @param {*} basis Optional. The type of day count basis to use.
951
- * @returns
952
- */
953
- export function COUPNCD(): void;
954
- /**
955
- * -- Not implemented --
956
- *
957
- * Returns the number of coupons payable between the settlement date and maturity date.
958
- *
959
- * Category: Financial
960
- *
961
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
962
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
963
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
964
- * @param {*} basis Optional. The type of day count basis to use.
965
- * @returns
966
- */
967
- export function COUPNUM(): void;
968
- /**
969
- * -- Not implemented --
970
- *
971
- * Returns the previous coupon date before the settlement date.
972
- *
973
- * Category: Financial
974
- *
975
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
976
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
977
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
978
- * @param {*} basis Optional. The type of day count basis to use.
979
- * @returns
980
- */
981
- export function COUPPCD(): void;
982
831
  /**
983
832
  * Returns covariance, the average of the products of paired deviations.
984
833
  *
@@ -1098,7 +947,7 @@ export function CUMPRINC(rate: any, nper: any, pv: any, start_period: any, end:
1098
947
  * @param {*} day Day
1099
948
  * @returns
1100
949
  */
1101
- export function DATE(year: any, month: any, day: any): Date | Error;
950
+ export function DATE(year: any, month: any, day: any): number | Date | Error;
1102
951
  /**
1103
952
  * Calculates the number of days, months, or years between two dates. This function is useful in formulas where you need to calculate an age.
1104
953
  *
@@ -1124,7 +973,7 @@ export function DATEDIF(start_date: any, end_date: any, unit: any): number | Err
1124
973
  * @param {*} date_text Text that represents a date in an Excel date format, or a reference to a value that contains text that represents a date in an Excel date format.
1125
974
  * @returns
1126
975
  */
1127
- export function DATEVALUE(date_text: any): Date | Error;
976
+ export function DATEVALUE(date_text: any): number | Date | Error;
1128
977
  /**
1129
978
  * Returns the average of selected database entries.
1130
979
  *
@@ -1179,17 +1028,6 @@ export function DAYS360(start_date: any, end_date: any, method: any): number | E
1179
1028
  * @returns
1180
1029
  */
1181
1030
  export function DB(cost: any, salvage: any, life: any, period: any, month: any): number | Error;
1182
- /**
1183
- * -- Not implemented --
1184
- *
1185
- * Changes half-width (single-byte) English letters or katakana within a character string to full-width (double-byte) characters.
1186
- *
1187
- * Category: Text
1188
- *
1189
- * @param {*} text The text or a reference to a value that contains the text you want to change. If text does not contain any half-width English letters or katakana, text is not changed.
1190
- * @returns
1191
- */
1192
- export function DBCS(): void;
1193
1031
  /**
1194
1032
  * Counts the values that contain numbers in a database.
1195
1033
  *
@@ -1413,22 +1251,6 @@ export function DSTDEVP(database: any, field: any, criteria: any): number | Erro
1413
1251
  * @returns
1414
1252
  */
1415
1253
  export function DSUM(database: any, field: any, criteria: any): number | Error;
1416
- /**
1417
- * -- Not implemented --
1418
- *
1419
- * Returns the annual duration of a security with periodic interest payments.
1420
- *
1421
- * Category: Financial
1422
- *
1423
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
1424
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
1425
- * @param {*} coupon The security's annual coupon rate.
1426
- * @param {*} yld The security's annual yield.
1427
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
1428
- * @param {*} basis Optional. The type of day count basis to use.
1429
- * @returns
1430
- */
1431
- export function DURATION(): void;
1432
1254
  /**
1433
1255
  * Estimates variance based on a sample from selected database entries.
1434
1256
  *
@@ -1480,7 +1302,7 @@ export function EFFECT(nominal_rate: any, npery: any): number | Error;
1480
1302
  * @param {*} months The number of months before or after start_date. A positive value for months yields a future date; a negative value yields a past date.
1481
1303
  * @returns
1482
1304
  */
1483
- export function EOMONTH(start_date: any, months: any): Date | Error;
1305
+ export function EOMONTH(start_date: any, months: any): number | Date | Error;
1484
1306
  /**
1485
1307
  * Returns the error function.
1486
1308
  *
@@ -1491,19 +1313,6 @@ export function EOMONTH(start_date: any, months: any): Date | Error;
1491
1313
  * @returns
1492
1314
  */
1493
1315
  export function ERF(lower_limit: any, upper_limit: any): any;
1494
- export namespace ERF {
1495
- /**
1496
- * -- Not implemented --
1497
- *
1498
- * Returns the error function.
1499
- *
1500
- * Category: Engineering
1501
- *
1502
- * @param {*} x The lower bound for integrating ERF.PRECISE.
1503
- * @returns
1504
- */
1505
- function PRECISE(): never;
1506
- }
1507
1316
  /**
1508
1317
  * Returns the complementary error function.
1509
1318
  *
@@ -1513,41 +1322,8 @@ export namespace ERF {
1513
1322
  * @returns
1514
1323
  */
1515
1324
  export function ERFC(x: any): any;
1516
- export namespace ERFC {
1517
- /**
1518
- * -- Not implemented --
1519
- *
1520
- * Returns the complementary ERF function integrated between x and infinity.
1521
- *
1522
- * Category: Engineering
1523
- *
1524
- * @param {*} x The lower bound for integrating ERFC.PRECISE.
1525
- * @returns
1526
- */
1527
- function PRECISE(): never;
1528
- }
1529
- /**
1530
- * -- Not implemented --
1531
- *
1532
- * Returns the complementary ERF function integrated between x and infinity.
1533
- *
1534
- * Category: Engineering
1535
- *
1536
- * @param {*} x The lower bound for integrating ERFC.PRECISE.
1537
- * @returns
1538
- */
1539
- export function ERFCPRECISE(): never;
1540
- /**
1541
- * -- Not implemented --
1542
- *
1543
- * Returns the error function.
1544
- *
1545
- * Category: Engineering
1546
- *
1547
- * @param {*} x The lower bound for integrating ERF.PRECISE.
1548
- * @returns
1549
- */
1550
- export function ERFPRECISE(): never;
1325
+ export const ERFCPRECISE: any;
1326
+ export const ERFPRECISE: any;
1551
1327
  export namespace ERROR {
1552
1328
  function TYPE(error_val: any): Error | 1 | 2 | 3 | 4 | 8 | 5 | 6 | 7;
1553
1329
  }
@@ -2397,16 +2173,6 @@ export function IMTAN(inumber: any): any;
2397
2173
  * @returns
2398
2174
  */
2399
2175
  export function INDEX(array: any, row_num: any, column_num: any): any;
2400
- /**
2401
- * -- Not implemented --
2402
- *
2403
- * Returns information about the current operating environment.
2404
- *
2405
- * Category: Information
2406
- *
2407
- * @returns
2408
- */
2409
- export function INFO(): void;
2410
2176
  /**
2411
2177
  * Rounds a number down to the nearest integer.
2412
2178
  *
@@ -2426,21 +2192,6 @@ export function INT(number: any): number | Error;
2426
2192
  * @returns
2427
2193
  */
2428
2194
  export function INTERCEPT(known_y: any, known_x: any): number | Error;
2429
- /**
2430
- * -- Not implemented --
2431
- *
2432
- * Returns the interest rate for a fully invested security.
2433
- *
2434
- * Category: Financial
2435
- *
2436
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
2437
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
2438
- * @param {*} investment The amount invested in the security.
2439
- * @param {*} redemption The amount to be received at maturity.
2440
- * @param {*} basis Optional. The type of day count basis to use.
2441
- * @returns
2442
- */
2443
- export function INTRATE(): void;
2444
2195
  /**
2445
2196
  * Returns the interest payment for an investment for a given period.
2446
2197
  *
@@ -2507,17 +2258,6 @@ export function ISERROR(value: any): boolean;
2507
2258
  * @returns
2508
2259
  */
2509
2260
  export function ISEVEN(number: any): boolean;
2510
- /**
2511
- * -- Not implemented --
2512
- *
2513
- * Returns TRUE if there is a reference to a value that contains a formula.
2514
- *
2515
- * Category: Information
2516
- *
2517
- * @param {*} reference Reference is a reference to the value you want to test. Reference can be a value reference, a formula, or a name that refers to a value.
2518
- * @returns
2519
- */
2520
- export function ISFORMULA(): void;
2521
2261
  /**
2522
2262
  * Returns TRUE if the value is a logical value.
2523
2263
  *
@@ -2588,17 +2328,6 @@ export function ISOWEEKNUM(date: any): number | Error;
2588
2328
  * @returns
2589
2329
  */
2590
2330
  export function ISPMT(rate: any, per: any, nper: any, pv: any): number | Error;
2591
- /**
2592
- * -- Not implemented --
2593
- *
2594
- * Returns TRUE if the value is a reference.
2595
- *
2596
- * Category: Information
2597
- *
2598
- * @param {*} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
2599
- * @returns
2600
- */
2601
- export function ISREF(): void;
2602
2331
  /**
2603
2332
  * Returns TRUE if the value is text.
2604
2333
  *
@@ -2829,22 +2558,6 @@ export function MAXA(...args: any[]): any;
2829
2558
  * @returns
2830
2559
  */
2831
2560
  export function MAXIFS(...args: any[]): any;
2832
- /**
2833
- * -- Not implemented --
2834
- *
2835
- * Returns the Macauley modified duration for a security with an assumed par value of $100.
2836
- *
2837
- * Category: Financial
2838
- *
2839
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
2840
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
2841
- * @param {*} coupon The security's annual coupon rate.
2842
- * @param {*} yld The security's annual yield.
2843
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
2844
- * @param {*} basis Optional. The type of day count basis to use.
2845
- * @returns
2846
- */
2847
- export function MDURATION(): void;
2848
2561
  /**
2849
2562
  * Returns the median of the given numbers.
2850
2563
  *
@@ -3201,7 +2914,7 @@ export function NOT(logical: any): boolean | Error;
3201
2914
  *
3202
2915
  * @returns
3203
2916
  */
3204
- export function NOW(): Date;
2917
+ export function NOW(): number | Date;
3205
2918
  /**
3206
2919
  * Returns the number of periods for an investment.
3207
2920
  *
@@ -3278,80 +2991,6 @@ export function OCT2HEX(number: any, places: any): string | Error;
3278
2991
  * @returns
3279
2992
  */
3280
2993
  export function ODD(number: any): number | Error;
3281
- /**
3282
- * -- Not implemented --
3283
- *
3284
- * Returns the price per $100 face value of a security with an odd first period.
3285
- *
3286
- * Category: Financial
3287
- *
3288
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
3289
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
3290
- * @param {*} issue The security's issue date.
3291
- * @param {*} first_coupon The security's first coupon date.
3292
- * @param {*} rate The security's interest rate.
3293
- * @param {*} yld The security's annual yield.
3294
- * @param {*} redemption The security's redemption value per $100 face value.
3295
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
3296
- * @param {*} basis Optional. The type of day count basis to use.
3297
- * @returns
3298
- */
3299
- export function ODDFPRICE(): void;
3300
- /**
3301
- * -- Not implemented --
3302
- *
3303
- * Returns the yield of a security with an odd first period.
3304
- *
3305
- * Category: Financial
3306
- *
3307
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
3308
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
3309
- * @param {*} issue The security's issue date.
3310
- * @param {*} first_coupon The security's first coupon date.
3311
- * @param {*} rate The security's interest rate.
3312
- * @param {*} pr The security's price.
3313
- * @param {*} redemption The security's redemption value per $100 face value.
3314
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
3315
- * @param {*} basis Optional. The type of day count basis to use.
3316
- * @returns
3317
- */
3318
- export function ODDFYIELD(): void;
3319
- /**
3320
- * -- Not implemented --
3321
- *
3322
- * Returns the price per $100 face value of a security with an odd last period.
3323
- *
3324
- * Category: Financial
3325
- *
3326
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
3327
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
3328
- * @param {*} last_interest The security's last coupon date.
3329
- * @param {*} rate The security's interest rate.
3330
- * @param {*} yld The security's annual yield.
3331
- * @param {*} redemption The security's redemption value per $100 face value.
3332
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
3333
- * @param {*} basis Optional. The type of day count basis to use.
3334
- * @returns
3335
- */
3336
- export function ODDLPRICE(): void;
3337
- /**
3338
- * -- Not implemented --
3339
- *
3340
- * Returns the yield of a security with an odd last period.
3341
- *
3342
- * Category: Financial
3343
- *
3344
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
3345
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
3346
- * @param {*} last_interest The security's last coupon date.
3347
- * @param {*} rate The security's interest rate
3348
- * @param {*} pr The security's price.
3349
- * @param {*} redemption The security's redemption value per $100 face value.
3350
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
3351
- * @param {*} basis Optional. The type of day count basis to use.
3352
- * @returns
3353
- */
3354
- export function ODDLYIELD(): void;
3355
2994
  /**
3356
2995
  * Returns TRUE if any argument is TRUE.
3357
2996
  *
@@ -3563,23 +3202,6 @@ export function POWER(number: any, power: any): any;
3563
3202
  * @returns
3564
3203
  */
3565
3204
  export function PPMT(rate: any, per: any, nper: any, pv: any, fv: any, type: any): number | Error;
3566
- /**
3567
- * -- Not implemented --
3568
- *
3569
- * Returns the price per $100 face value of a security that pays periodic interest.
3570
- *
3571
- * Category: Financial
3572
- *
3573
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
3574
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
3575
- * @param {*} rate The security's annual coupon rate.
3576
- * @param {*} yld The security's annual yield.
3577
- * @param {*} redemption The security's redemption value per $100 face value.
3578
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
3579
- * @param {*} basis Optional. The type of day count basis to use.
3580
- * @returns
3581
- */
3582
- export function PRICE(): void;
3583
3205
  /**
3584
3206
  * Returns the price per $100 face value of a discounted security.
3585
3207
  *
@@ -3593,22 +3215,6 @@ export function PRICE(): void;
3593
3215
  * @returns
3594
3216
  */
3595
3217
  export function PRICEDISC(settlement: any, maturity: any, discount: any, redemption: any, basis: any): number | Error;
3596
- /**
3597
- * -- Not implemented --
3598
- *
3599
- * Returns the price per $100 face value of a security that pays interest at maturity.
3600
- *
3601
- * Category: Financial
3602
- *
3603
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
3604
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
3605
- * @param {*} issue The security's issue date, expressed as a serial date number.
3606
- * @param {*} rate The security's interest rate at date of issue.
3607
- * @param {*} yld The security's annual yield.
3608
- * @param {*} basis Optional. The type of day count basis to use.
3609
- * @returns
3610
- */
3611
- export function PRICEMAT(): void;
3612
3218
  /**
3613
3219
  * Returns the probability that values in a range are between two limits.
3614
3220
  *
@@ -3631,10 +3237,6 @@ export function PROB(x_range: any, prob_range: any, lower_limit: any, upper_limi
3631
3237
  * @returns
3632
3238
  */
3633
3239
  export function PRODUCT(...args: any[]): number | Error;
3634
- /**
3635
- * -- Not implemented --
3636
- */
3637
- export function PRONETIC(): void;
3638
3240
  /**
3639
3241
  * Capitalizes the first letter in each word of a text value.
3640
3242
  *
@@ -3798,21 +3400,6 @@ export function RANKEQ(number: any, ref: any, order: any): any;
3798
3400
  * @returns
3799
3401
  */
3800
3402
  export function RATE(nper: any, pmt: any, pv: any, fv: any, type: any, guess: any): any;
3801
- /**
3802
- * -- Not implemented --
3803
- *
3804
- * Returns the amount received at maturity for a fully invested security.
3805
- *
3806
- * Category: Financial
3807
- *
3808
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
3809
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
3810
- * @param {*} investment The amount invested in the security.
3811
- * @param {*} discount The security's discount rate.
3812
- * @param {*} basis Optional. The type of day count basis to use.
3813
- * @returns
3814
- */
3815
- export function RECEIVED(): void;
3816
3403
  /**
3817
3404
  * Replaces characters within text
3818
3405
  *
@@ -3974,28 +3561,6 @@ export function SECOND(serial_number: any): any;
3974
3561
  * @returns
3975
3562
  */
3976
3563
  export function SERIESSUM(x: any, n: any, m: any, coefficients: any): number | Error;
3977
- /**
3978
- * -- Not implemented --
3979
- *
3980
- * Returns the sheet number of the referenced sheet.
3981
- *
3982
- * Category: Information
3983
- *
3984
- * @param {*} value Optional. Value is the name of a sheet or a reference for which you want the sheet number. If value is omitted, SHEET returns the number of the sheet that contains the function.
3985
- * @returns
3986
- */
3987
- export function SHEET(): void;
3988
- /**
3989
- * -- Not implemented --
3990
- *
3991
- * Returns the number of sheets in a reference.
3992
- *
3993
- * Category: Information
3994
- *
3995
- * @param {*} reference Optional. Reference is a reference for which you want to know the number of sheets it contains. If Reference is omitted, SHEETS returns the number of sheets in the workbook that contains the function.
3996
- * @returns
3997
- */
3998
- export function SHEETS(): void;
3999
3564
  /**
4000
3565
  * Returns the sign of a number.
4001
3566
  *
@@ -4511,7 +4076,7 @@ export namespace TINV {
4511
4076
  *
4512
4077
  * @returns
4513
4078
  */
4514
- export function TODAY(): Date;
4079
+ export function TODAY(): number | Date;
4515
4080
  /**
4516
4081
  * Returns the transpose of an array.
4517
4082
  *
@@ -4688,25 +4253,6 @@ export function VARPA(...args: any[]): number | Error;
4688
4253
  * @returns
4689
4254
  */
4690
4255
  export function VARS(...args: any[]): number;
4691
- /**
4692
- * -- Not implemented --
4693
- *
4694
- * Returns the depreciation of an asset for a specified or partial period by using a declining balance method.
4695
- *
4696
- * Category: Financial
4697
- *
4698
- * @param {*} cost The initial cost of the asset.
4699
- * @param {*} salvage The value at the end of the depreciation (sometimes called the salvage value of the asset). This value can be 0.
4700
- * @param {*} life The number of periods over which the asset is depreciated (sometimes called the useful life of the asset).
4701
- * @param {*} start_period The starting period for which you want to calculate the depreciation. Start_period must use the same units as life.
4702
- * @param {*} end_period The ending period for which you want to calculate the depreciation. End_period must use the same units as life.
4703
- * @param {*} factor Optional. The rate at which the balance declines. If factor is omitted, it is assumed to be 2 (the double-declining balance method). Change factor if you do not want to use the double-declining balance method. For a description of the double-declining balance method, see DDB.
4704
- * @param {*} no_switch Optional. A logical value specifying whether to switch to straight-line depreciation when depreciation is greater than the declining balance calculation.
4705
- - If no_switch is TRUE, Microsoft Excel does not switch to straight-line depreciation even when the depreciation is greater than the declining balance calculation.
4706
- - If no_switch is FALSE or omitted, Excel switches to straight-line depreciation when depreciation is greater than the declining balance calculation.
4707
- * @returns
4708
- */
4709
- export function VDB(): void;
4710
4256
  /**
4711
4257
  * Looks in the first column of an array and moves across the row to return the value of a value.
4712
4258
  *
@@ -4853,54 +4399,6 @@ export function YEAR(serial_number: any): any;
4853
4399
  * @returns
4854
4400
  */
4855
4401
  export function YEARFRAC(start_date: any, end_date: any, basis: any): number | Error;
4856
- /**
4857
- * -- Not implemented --
4858
- *
4859
- * Returns the yield on a security that pays periodic interest.
4860
- *
4861
- * Category: Financial
4862
- *
4863
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
4864
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
4865
- * @param {*} rate The security's annual coupon rate.
4866
- * @param {*} pr The security's price per $100 face value.
4867
- * @param {*} redemption The security's redemption value per $100 face value.
4868
- * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
4869
- * @param {*} basis Optional. The type of day count basis to use.
4870
- * @returns
4871
- */
4872
- export function YIELD(): void;
4873
- /**
4874
- * -- Not implemented --
4875
- *
4876
- * Returns the annual yield for a discounted security; for example, a Treasury bill.
4877
- *
4878
- * Category: Financial
4879
- *
4880
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
4881
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
4882
- * @param {*} pr The security's price per $100 face value.
4883
- * @param {*} redemption The security's redemption value per $100 face value.
4884
- * @param {*} basis Optional. The type of day count basis to use.
4885
- * @returns
4886
- */
4887
- export function YIELDDISC(): void;
4888
- /**
4889
- * -- Not implemented --
4890
- *
4891
- * Returns the annual yield of a security that pays interest at maturity.
4892
- *
4893
- * Category: Financial
4894
- *
4895
- * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
4896
- * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
4897
- * @param {*} issue The security's issue date, expressed as a serial date number.
4898
- * @param {*} rate The security's interest rate at date of issue.
4899
- * @param {*} pr The security's price per $100 face value.
4900
- * @param {*} basis Optional. The type of day count basis to use.
4901
- * @returns
4902
- */
4903
- export function YIELDMAT(): void;
4904
4402
  export namespace Z {
4905
4403
  /**
4906
4404
  * Returns the one-tailed probability-value of a z-test.
@@ -4928,6 +4426,7 @@ export function ZTEST(array: any, x: any, sigma: any): number | Error;
4928
4426
  export namespace utils {
4929
4427
  export { errors };
4930
4428
  export { symbols };
4429
+ export { date };
4931
4430
  }
4932
4431
  declare var errors: Readonly<{
4933
4432
  __proto__: any;
@@ -4955,6 +4454,14 @@ declare var symbols: Readonly<{
4955
4454
  NE: typeof NE;
4956
4455
  POW: typeof POW;
4957
4456
  }>;
4457
+ declare var date: Readonly<{
4458
+ __proto__: any;
4459
+ dateToSerial: typeof dateToSerial;
4460
+ readonly returnSerial: boolean;
4461
+ serialToDate: typeof serialToDate;
4462
+ useDate: typeof useDate;
4463
+ useSerial: typeof useSerial;
4464
+ }>;
4958
4465
  /**
4959
4466
  * Following functions are part of Formula.js only and not found in Excel.
4960
4467
  * Purpose of these functions is to implement an Excel like behaviour for fundamental math symbols such as +, -, /, *, etc.
@@ -5047,4 +4554,8 @@ declare function NE(value1: any, value2: any, ...args: any[]): boolean | Error;
5047
4554
  * @returns
5048
4555
  */
5049
4556
  declare function POW(base: any, exponent: any, ...args: any[]): any;
4557
+ declare function dateToSerial(date: any): number;
4558
+ declare function serialToDate(serial: any): Date;
4559
+ declare function useDate(): void;
4560
+ declare function useSerial(): void;
5050
4561
  export {};