spreadsheet
typeScript/javascript spreadsheet parser, with formulas.
git clone https://git.vogt.world/spreadsheet.git
Log | Files | README.md
← Commit log
commit
message
Cleaning up files a bit
author
Ben Vogt <[email protected]>
date
2017-01-22 20:25:11
stats
2 file(s) changed, 13 insertions(+), 12 deletions(-)
files
src/RawFormulas/Math.ts
src/RawFormulas/RawFormulas.ts
 1diff --git a/src/RawFormulas/Math.ts b/src/RawFormulas/Math.ts
 2index f45d041..47f91e9 100644
 3--- a/src/RawFormulas/Math.ts
 4+++ b/src/RawFormulas/Math.ts
 5@@ -461,6 +461,15 @@ var SUM = function (...values) : number {
 6   return result;
 7 };
 8 
 9+/**
10+ * The value Pi.
11+ * @returns {number} Pi.
12+ * @constructor
13+ */
14+var PI = function () {
15+  return Math.PI;
16+};
17+
18 export {
19   ABS,
20   ACOS,
21@@ -483,5 +492,6 @@ export {
22   MINA,
23   MOD,
24   ODD,
25-  SUM
26+  SUM,
27+  PI
28 }
29\ No newline at end of file
30diff --git a/src/RawFormulas/RawFormulas.ts b/src/RawFormulas/RawFormulas.ts
31index 3a1eea1..0869f6b 100644
32--- a/src/RawFormulas/RawFormulas.ts
33+++ b/src/RawFormulas/RawFormulas.ts
34@@ -23,7 +23,8 @@ import {
35   MINA,
36   MOD,
37   ODD,
38-  SUM
39+  SUM,
40+  PI
41 } from "./Math";
42 import {
43   AND,
44@@ -65,9 +66,6 @@ var CONCATENATE = Formula["CONCATENATE"];
45 var CONVERT = Formula["CONVERT"];
46 var CORREL = Formula["CORREL"];
47 var COS = Formula["COS"];
48-var PI = function () {
49-  return Math.PI;
50-};
51 var COSH = Formula["COSH"];
52 var COT = Formula["COT"];
53 var COTH = Formula["COTH"];
54@@ -111,10 +109,6 @@ var EOMONTH = function (start_date, months) {
55 };
56 var ERF = Formula["ERF"];
57 var ERFC = Formula["ERFC"];
58-
59-
60-
61-
62 var EXPONDIST = Formula["EXPONDIST"];
63 var FALSE = Formula["FALSE"];
64 var __COMPLEX = {
65@@ -130,9 +124,6 @@ var ISODD = Formula["ISODD"];
66 var LN = Formula["LN"];
67 var LOG = Formula["LOG"];
68 var LOG10 = Formula["LOG10"];
69-
70-
71-
72 var OR = Formula["OR"];
73 var POWER = Formula["POWER"];
74 var ROUND = Formula["ROUND"];