diff options
Diffstat (limited to 'GcodeProcessorLib/utilities.cpp')
-rw-r--r-- | GcodeProcessorLib/utilities.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/GcodeProcessorLib/utilities.cpp b/GcodeProcessorLib/utilities.cpp index b5a09a6..a723cdf 100644 --- a/GcodeProcessorLib/utilities.cpp +++ b/GcodeProcessorLib/utilities.cpp @@ -176,7 +176,7 @@ double utilities::get_percent_change(double v1, double v2) { if (v1 != 0) { - return ((v2 - v1) / v1) * 100.0; + return ((v2 - v1) / v1); } return 0; } @@ -322,7 +322,7 @@ std::string utilities::dtos(double x, unsigned char precision) */ return buffer; } - +/* bool utilities::case_insensitive_compare_char(char& c1, char& c2) { if (c1 == c2) @@ -331,10 +331,13 @@ bool utilities::case_insensitive_compare_char(char& c1, char& c2) return true; return false; } + /* * Case Insensitive String Comparision - */ + bool utilities::case_insensitive_compare(std::string& str1, std::string& str2) { return ((str1.size() == str2.size()) && std::equal(str1.begin(), str1.end(), str2.begin(), &utilities::case_insensitive_compare_char)); } + +*/
\ No newline at end of file |