Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellString.cpp
diff options
context:
space:
mode:
1 files changed, 7 insertions, 2 deletions
-rw-r--r--src/Models/CellString.cpp9
diff --git a/src/Models/CellString.cpp b/src/Models/CellString.cpp
index ffc760c..20eacf4 100644
--- a/src/Models/CellString.cpp
+++ b/src/Models/CellString.cpp
@@ -1,7 +1,12 @@
#include "CellString.h"
+#include <cstring>
-String CellString::getNumeralValue() {
- return value;
+CellString::CellString(const char* str) {
+ value = String(str);
+}
+
+double CellString::getNumeralValue() {
+ return atof(value.get_cstr());
}
String CellString::getValueForPrint() {