rogerh Never mind; you wrote a small program to call jdn, then fed the answers to unjdn and got the correct input back. That means my problem is in the main program, feeding bad values in somehow. Thanks a bunch! Roger