From 75ed38e430f0cd74935192c72473310b86aeafe4 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Sun, 17 Sep 2023 01:27:39 -0500 Subject: [PATCH] Update allsky_common.cpp: increase precision in message --- src/allsky_common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allsky_common.cpp b/src/allsky_common.cpp index da15b7f52..7a39125e4 100644 --- a/src/allsky_common.cpp +++ b/src/allsky_common.cpp @@ -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) { @@ -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) {