decimal degrees to d/m/s degrees

I have a rexx program which wouldn't be too hard to convert to something
else (C, Fortran, Basic, whatever). If you want it, please let me know.

virginia