ten {astrolibR} | R Documentation |
Convert a sexigesimal number or string to decimal
ten(dd, mm=0, ss=0)
dd |
degrees (0-360) or hour (0-24), integer, scalar |
mm |
minutes, integer (0-60), scalar (default = 0) |
ss |
seconds, integer (0-60), scalar (default = 0) |
The output is a real number
= dd + mm/60. + ss/3600
. Inverse of the sixty function. The function tenv can be used when dealing with a vector of sexigesimal quantities.
|
decimal equivalent of input sexigesimal quantity, real, scalar |
Written W. Landsman Raytheon ITSS 2000
R adaptation by Arnab Chakraborty June 2013
ten(12,0,0) # gives 12 ten("12:00:00") # gives 12 ten(0,-23,34) # gives -0.39277778 ten("-0:23:34") # gives -0.39277778