[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


SIXTY() Source code in sixty.pro

SIXTY()

Name
       SIXTY()
Purpose
       Converts a decimal number to sexigesimal.
Explanation
       Reverse of the TEN() function.
Calling Sequence
       X = SIXTY( SCALAR )
Input Parameters
       SCALAR -- Decimal quantity.
Output Parameters
       Function value returned = floating real vector of three elements,
       sexigesimal equivalent of input decimal quantity.
       A negative number is signified by making the first non-zero
       element of the output vection negative.
Procedure
       Mostly involves checking arguments and setting the sign.
Example
       If x = -0.345d then sixty(x) = [0.0, -20.0, 42.0]
Revision History
       Written by R. S. Hill, STX, 19-OCT-87
       Output changed to single precision.  RSH, STX, 1/26/88
       Accept single element vector   W. Landsman   Sep. 1996
       Converted to IDL V5.0   W. Landsman   September 1997

Last modified by pro2html on 2004 March 06 at 04:40 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically