From 346dd895dfcf06857607516f90489aa12c8ce523 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 29 May 2022 09:14:13 +0300 Subject: Autocommit at 29.05.2022 @ 09:14 --- src/Models/CellFormula.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Models/CellFormula.cpp') 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>* tableCells) : parseAndSetValue(str); } +#include + 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(); } -- cgit v1.3.1-23-gd82d