Skip to content

Commit

Permalink
Residuals just under 10000 or 100 arcseconds could be rounded up the …
Browse files Browse the repository at this point in the history
…wrong way (took years for me to see an actual case of it, though)
  • Loading branch information
Bill-Gray committed Dec 23, 2023
1 parent 17a4444 commit e617d3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ephem0.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit e617d3b

Please sign in to comment.