From e617d3bd39acf9e4e3147b25800f63a4138947c0 Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Sat, 23 Dec 2023 10:21:01 -0500 Subject: [PATCH] Residuals just under 10000 or 100 arcseconds could be rounded up the wrong way (took years for me to see an actual case of it, though) --- ephem0.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ephem0.cpp b/ephem0.cpp index dfce66f6..64229c93 100644 --- a/ephem0.cpp +++ b/ephem0.cpp @@ -3980,9 +3980,9 @@ static void put_residual_into_text( char *text, const double resid, strlcpy_err( text, " Err!", 6); else if( zval > 59940.0) /* >999': show integer degrees */ snprintf_err( text, 6, "%4.0fd", zval / 3600.); - else if( zval > 9999.9) /* 999' > x > 9999": show ###' arcmin */ + else if( zval > 9999.) /* 999' > x > 9999": show ###' arcmin */ snprintf_err( text, 6, "%4.0f'", zval / 60.); - else if( zval > 99.9) + else if( zval > 99.) snprintf_err( text, 6, "%5.0f", zval); else if( zval > .99 && zval < 9.99 && precise) snprintf_err( text, 6, "%5.2f", zval);