sixty {astrolibR} | R Documentation |
Convert a decimal number to sexigesimal
sixty(scalar, trailsign = F)
scalar |
decimal quantity, scalar |
trailsign |
if =TRUE, then the function returns a negative sign to the first element, even if it is zero. If = FALSE, then the function returns a negative sign in the first nonzero element. (default = FALSE) |
Reverse of the function ten.
result |
real vector of three elements, sexigesimal equivalent of input decimal quantity |
Written by R. S. Hill, STX, 1987
R adaptation by Arnab Chakraborty June 2013
sixty(136.127) sixty(-0.345) # returns (0.0,-20.0,42.0) sixty(-0.345, trailsign=TRUE) # returns (-0.0,20.0,42.0)