aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--doc/info/solar-python.texinfo14
-rw-r--r--src/solar_python.py6
2 files changed, 10 insertions, 10 deletions
diff --git a/doc/info/solar-python.texinfo b/doc/info/solar-python.texinfo
index 4a4ceda..3baafef 100644
--- a/doc/info/solar-python.texinfo
+++ b/doc/info/solar-python.texinfo
@@ -85,14 +85,14 @@ Importing @code{solar_python} makes the following
constants available:
@table @code
-@item SOLAR_APPARENT_RADIUS = 32 / 60
+@item SOLAR_APPARENT_RADIUS = 32.0 / 60.0
Approximate apparent size of the Sun in degrees.
-@item SOLAR_ELEVATION_PRESUNSET_POSTSUNRISE = 32 / 60
+@item SOLAR_ELEVATION_PRESUNSET_POSTSUNRISE = 32.0 / 60.0
The Sun's elevation at beginning of sunset
and end of sunrise, measured in degrees.
-@item SOLAR_ELEVATION_SUNSET_SUNRISE = -32 / 60
+@item SOLAR_ELEVATION_SUNSET_SUNRISE = -32.0 / 60.0
The Sun's elevation at (end of) sunset and
(beginning of) sunrise, measured in degrees.
@@ -116,19 +116,19 @@ amateur astronomical dawn, measured in degrees
The Sun's lowest and highest elevation during all
periods of twilight, measured in degrees
-@item SOLAR_ELEVATION_RANGE_CIVIL_TWILIGHT = (-6.0, -32 / 60)
+@item SOLAR_ELEVATION_RANGE_CIVIL_TWILIGHT = (-6.0, -32.0 / 60.0)
The Sun's lowest and highest elevation during
civil twilight, measured in degrees
-@item SOLAR_ELEVATION_RANGE_NAUTICAL_TWILIGHT = (-12.0, -32 / 60)
+@item SOLAR_ELEVATION_RANGE_NAUTICAL_TWILIGHT = (-12.0, -32.0 / 60.0)
The Sun's lowest and highest elevation during
nautical twilight, measured in degrees
-@item SOLAR_ELEVATION_RANGE_ASTRONOMICAL_TWILIGHT = (-18.0, -32 / 60)
+@item SOLAR_ELEVATION_RANGE_ASTRONOMICAL_TWILIGHT = (-18.0, -32.0 / 60.0)
The Sun's lowest and highest elevation during
astronomical twilight, measured in degrees
-@item SOLAR_ELEVATION_RANGE_AMATEUR_ASTRONOMICAL_TWILIGHT = (-15.0, -32 / 60)
+@item SOLAR_ELEVATION_RANGE_AMATEUR_ASTRONOMICAL_TWILIGHT = (-15.0, -32.0 / 60.0)
The Sun's lowest and highest elevation during
amateur astronomical twilight, measured in degrees
diff --git a/src/solar_python.py b/src/solar_python.py
index 87c65c2..80dae4a 100644
--- a/src/solar_python.py
+++ b/src/solar_python.py
@@ -16,19 +16,19 @@
-SOLAR_APPARENT_RADIUS = 32 / 60
+SOLAR_APPARENT_RADIUS = 32.0 / 60.0
'''
:float Approximate apparent size of the Sun in degrees
'''
-SOLAR_ELEVATION_PRESUNSET_POSTSUNRISE = 32 / 60
+SOLAR_ELEVATION_PRESUNSET_POSTSUNRISE = 32.0 / 60.0
'''
:float The Sun's elevation the beginning of sunset and
end of sunrise, measured in degrees
'''
-SOLAR_ELEVATION_SUNSET_SUNRISE = -32 / 60
+SOLAR_ELEVATION_SUNSET_SUNRISE = -32.0 / 60.0
'''
:float The Sun's elevation the (end of) at sunset and
(beginning of) sunrise, measured in degrees