From 74f8869b858b0fd6c48e6dc8b64edacae691aebc Mon Sep 17 00:00:00 2001 From: Ben Jabituya <74158243+jabituyaben@users.noreply.github.com> Date: Sat, 14 Oct 2023 00:09:15 +0100 Subject: [PATCH] Update app.js --- apps/astral/app.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/astral/app.js b/apps/astral/app.js index a435ca9e3..1b249cf99 100644 --- a/apps/astral/app.js +++ b/apps/astral/app.js @@ -534,14 +534,7 @@ function mean_sidereal_time(lon) { var mst = 280.46061837 + 360.98564736629 * jd + 0.000387933 * jt * jt - jt * jt * jt / 38710000 + lon; - if (mst > 0.0) { - while (mst > 360.0) - mst = mst - 360.0; - } - else { - while (mst < 0.0) - mst = mst + 360.0; - } + mst = mst%360; return mst; }