Skip to content

Commit

Permalink
Merge pull request #348 from JeffersonLab/rasool_fixScaleFactorsJtype…
Browse files Browse the repository at this point in the history
…info

Fixed Scaling Factors of `to_string_with_si_prefix` Function in JTypeInfo.h
  • Loading branch information
nathanwbrei authored Aug 22, 2024
2 parents c5674aa + b497440 commit 53b52f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/JANA/Utils/JTypeInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ inline std::string to_string_with_si_prefix(float val) {
} else if (val < 1.0E-7) {
units = "";
} else if (val < 1.0E-4) {
val /= 1.0E6;
val *= 1.0E6;
units = "u";
} else if (val < 1.0E-1) {
val /= 1.0E3;
val *= 1.0E3;
units = "m";
}
char str[256];
Expand Down

0 comments on commit 53b52f8

Please sign in to comment.