Re: Degree,minute,second


[Prev][Next][Index][Thread]

Re: Degree,minute,second



>From: Jeff Blocker <jblocker@AWOD.COM>
>Subject:      Degree,minute,second
>I was fooling around with a program on my 85 to calculate sunshots for
>surveying. I enter the required angles (DDDMMMSSS) such as 123'34'23.7'.
>I'm presently using the ' notation (as the manual calls it) from the
>custom menu. After I key in the angle and press enter, the custom menu
>clears and the next prompt appears on the home screen.  I've searched the
>manual for a way to call the custom menu from the program, but I've found
>nothing. Is there another way to accomplish this?




For survey routines I generally use this:


        Input "Bearing(dd.mmss)? ",bg
        100*fPart bg
        (iPart bg+(iPart Ans)/60+(fPart Ans)/36)\->\bg


This converts an angle input in "kind-of-decimal" DD.MMSS format to decimal
 format.
 It also works fine on negative angles, and it preserves the decimal tail
of the seconds
 part of the angle.


The inverse (decimal to DD.MMSS) can be done using:


        60*fPart bg
        iPart bg +.01*iPart Ans+6\E\\(-)\3*fPart Ans\->\bg


which is sometimes useful for output.


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Stuart Dawson                                  Dawson Engineering
49 Knockbracken Park, Belfast  BT6 0HL,  Northern Ireland
106217.3374@compuserve.com      +44 1232 640669
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


References: