Browse Source

Rolling 20220930

jomjol 3 years ago
parent
commit
c943510828
2 changed files with 22 additions and 2 deletions
  1. 20 0
      Changelog.md
  2. 2 2
      code/components/jomjol_flowcontroll/ClassFlowControll.cpp

+ 20 - 0
Changelog.md

@@ -2,6 +2,26 @@
 
 ## [Unreleased]
 
+
+
+### Added
+
+-   n.a.
+
+### Changed
+
+-   n.a.
+
+### Fixed
+
+-   [#1116](https://github.com/jomjol/AI-on-the-edge-device/issues/1116) precision problem at setting prevalue
+
+### Removed
+
+-   n.a.
+
+
+
 ## [12.0.1] - 2022-09-29
 
 Improve **u**ser e**x**perience 

+ 2 - 2
code/components/jomjol_flowcontroll/ClassFlowControll.cpp

@@ -404,7 +404,7 @@ string ClassFlowControll::GetPrevalue(std::string _number)
 
 std::string ClassFlowControll::UpdatePrevalue(std::string _newvalue, std::string _numbers, bool _extern)
 {
-    float zw;
+    double zw;
     char* p;
 
     _newvalue = trim(_newvalue);
@@ -416,7 +416,7 @@ std::string ClassFlowControll::UpdatePrevalue(std::string _newvalue, std::string
     }
     else
     {
-        zw = strtof(_newvalue.c_str(), &p);
+        zw = strtod(_newvalue.c_str(), &p);
         if (zw == 0)
             return "- Error in String to Value Conversion!!! Must be of format value=123.456";
     }