Skip to content

Commit

Permalink
Update allsky_common.cpp: increase precision in message
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Sep 17, 2023
1 parent 87318d5 commit 75ed38e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/allsky_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ bool validateLong(long *num, long min, long max, char const *name, bool invalidI
bool validateFloat(double *num, double min, double max, char const *name, bool invalidIsOK)
{
if (*num < min) {
fprintf(stderr, "*** %s: '%s' (%'.1f) is less than the minimum of %'.1f",
fprintf(stderr, "*** %s: '%s' (%'.3f) is less than the minimum of %'.3f",
invalidIsOK ? "WARNING" : "ERROR", name, *num, min);
if (invalidIsOK == true)
{
Expand All @@ -919,7 +919,7 @@ bool validateFloat(double *num, double min, double max, char const *name, bool i
return invalidIsOK;

} else if (*num > max) {
fprintf(stderr, "*** %s: '%s' (%'.1f) is greater than the maximum of %'.1f",
fprintf(stderr, "*** %s: '%s' (%'.3f) is greater than the maximum of %'.3f",
invalidIsOK ? "WARNING" : "ERROR", name, *num, max);
if (invalidIsOK == true)
{
Expand Down

0 comments on commit 75ed38e

Please sign in to comment.