spreadsheet
typeScript/javascript spreadsheet parser, with formulas.
git clone https://git.vogt.world/spreadsheet.git
Log | Files | README.md
← Commit log
commit
message
[README.md] documenting number parsing requirements TODO
author
Ben Vogt <[email protected]>
date
2017-05-13 21:02:25
stats
1 file(s) changed, 10 insertions(+), 6 deletions(-)
files
README.md
 1diff --git a/README.md b/README.md
 2index a7688b3..a045a04 100644
 3--- a/README.md
 4+++ b/README.md
 5@@ -40,12 +40,7 @@ helpers to convert, display, and do normal operations with them.
 6 Contingent upon cells having formats or types for primitives.
 7 
 8 
 9-### Verify that all N-times ({2,9}) are correct, and we're not parsing numbers too big.
10-
11-
12-### Percentage inputs should be parsed to numbers
13-Input like `10%` should be parsed and stored as a number. It should be X*0.01, not X/100. For example `=2 * 1 * 10%` is
14-0.2, while `=2 * 1 * 10/1` is 20.
15+### Verify that all N-times ({2,9}) are correct, and we're not parsing numbers too big inside Date formulas.
16 
17 
18 ### Sheet.ts and Helpers.ts should be check conversion capabilities in same way as TypeConverter
19@@ -56,7 +51,15 @@ TypeConverter.
20 ### Scrape jsdocs for functions, put in simple index.html, doc.md files to serve up simple documentation
21 
22 
23-### Numbers with commas in them should still parse to numbers.
24+### Number parsing: `isNumber` or `canCoerceToNumber`, and `valueToNumber` should use a RegEx to determine numbers.
25+* Numbers that are integers. "10" === 10
26+* Numbers that are decimals. "10.10" === 10.10
27+* Numbers with commas in them should still parse to numbers. Eg: "1,000,000" === 1000000
28+* Numbers with percentages. Eg: "10%" === 0.1, 2 * 1 * 10% === 0.2
29+* Numbers with scientific notation. Eg: "10e1" === 100
30+* Numbers with positive or negative notation. Eg: "-10" === -10, "+10" === "10"
31+* Numbers that are dollar amounts. Eg: "$10.00" === 10
32+* Numbers that are positive or negative dollar amounts. Eg: "+$10" === 10, "-$10" === 10, "$+10" === 10, "$-10" === 10
33 
34 
35 ### Ensure all formulas are tested inside of SheetFormulaTest.ts