Skip to content

Commit

Permalink
swapped to floor instead of round
Browse files Browse the repository at this point in the history
  • Loading branch information
jtwhite79 committed Dec 20, 2021
1 parent 5c3c656 commit 3f51547
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/pestpp_common/Pest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "QSqrtMatrix.h"
#include <limits>
#include "network_package.h"
#include <cmath>


using namespace::std;
Expand Down Expand Up @@ -3176,7 +3177,7 @@ void Pest::tokens_to_par_rec(ofstream &f_rec, const vector<string>& tokens, Tran
{
float f;
convert_ip(tokens[9],f);
pi.dercom = std::round(f);
pi.dercom = (int)std::floor(f + 0.5);
}
else
pi.dercom = 1;
Expand Down

0 comments on commit 3f51547

Please sign in to comment.