> It's probably simple, but I can't seem to find any answers on this...
> I'm a surveyor, and I've Made programs to do all the things I want the
> 50 to do, replacing my 42s completely. The one thing I can't figure out
> how to do is take -> 98 45 23 <- and make it show on the stack
> -> 98*45'23" <- This being 98 degrees, 45 minuits,
> 23 seconds. Please help! on the 42s it was a kind of 'Inverted T',
> turned 90 degrees to the left, it is alpha alpha button if I remember
> right, like -> T " ' " " whatever... anything will help. thanks
>
To display, you have to split the digits up and convert them into a
string. You can no longer use the number for calculations, so you'll
only want to use this really for making display screens. I have
included PUSH and POP which save the flags and directory, and then
restore them. If you don't mind the stack being set to FIX 4 then you
can remove them.
<< PUSH 4 RND 0 HMS+ 4 FIX 34 CHR + 46 CHR 176 CHR SREPL DROP SREV DUP
1 3 SUB 39 CHR + SWAP 4 9 SUB + SREV POP >>
That will give you a nicely formatted string.
Also, should you wish to get a complete professional COGO system that
you can integrate with your own programs quite easily (there are
commands for database access and some low level stuff), check out
http://pssllc.com.
TW