Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
diff options
context:
space:
mode:
1 files changed, 5 insertions, 0 deletions
-rw-r--r--src/Models/CellFormula.cpp5
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp
index 4e84681..6090fd6 100644
--- a/src/Models/CellFormula.cpp
+++ b/src/Models/CellFormula.cpp
@@ -38,11 +38,16 @@ CellFormula::CellFormula(const char* str, const List<List<Cell*>>* tableCells) :
parseAndSetValue(str);
}
+#include <iostream>
+
double CellFormula::getNumeralValue() {
return calculate();
}
String CellFormula::getValueForPrint() {
+ for (unsigned i = 0; i < formula.get_count(); i++)
+ std::cout << "[" << formula[i].left->getValueForPrint() << " " << (int)formula[i].right << std::endl;
+ return 90;
return String() += calculate();
}