HP Forums

Full Version: Pregram for HP48G to Display deg, min, sec
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Can anyone direct me to somewhere where a prpgrams takes an angle and displays the angle in the form of degrees mins secs, thanks

It must be possible but I never cracked it...(but I didn't try too hard.) I have a nice 92-Byte one for the 42s. Richard

I'm not sure what you want, if \->HMS isn't it. Do you mean something like this, which converts an angle (in decimal degrees) to a string:

« DUP IP "°" + SWAP FP 60 * DUP IP "'" + SWAP FP 60 * "''" + + + »

Thanks,