summaryrefslogtreecommitdiff
path: root/inst/angltostr.m
diff options
context:
space:
mode:
authorRafael Laboissière <rafael@debian.org>2022-02-22 03:45:52 -0300
committerRafael Laboissière <rafael@debian.org>2022-02-22 03:45:52 -0300
commit912bf3426a4f43ff5817950025fc218f59b0349e (patch)
tree96cc7a84896f47b7e09a45bba53338f5db37f129 /inst/angltostr.m
parent61cecf0301bb9898db3d2fc9fef47671f567074d (diff)
New upstream version 1.4.2
Diffstat (limited to 'inst/angltostr.m')
-rw-r--r--inst/angltostr.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/inst/angltostr.m b/inst/angltostr.m
index e3874e2..4da3dd8 100644
--- a/inst/angltostr.m
+++ b/inst/angltostr.m
@@ -1,4 +1,4 @@
-## Copyright (C) 2020 Philip Nienhuis
+## Copyright (C) 2022 Philip Nienhuis
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -113,7 +113,7 @@ function str = angltostr (ang, hemcode="none", unit="degrees", acc=-2)
## Split up in degrees, minutes and seconds
degs = sign (ang) .* floor (abs (ang));
- mins = abs (ang .- degs) * 60;
+ mins = abs (ang - degs) * 60;
secs = (mins - floor (mins)) * 60;
is = sign (ang);
## Set zero values to positive