Show pageDiscussionOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== →∡d ==== <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> ---- Mark a number as an angle in degrees / minutes / seconds </callout> <callout color="green" icon="fa fa-indent" title="Stack Diagram"> ---- ^ __Input Stack__ ^ ^ __Output Stack__ ^ | **Num** | **→** | **∡<sub>dms</sub>** | | //Level 1// | //→// | //Level 1// | {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} | **Keyword type** | [[manual:chapter5:basics#commands|Command]] || | **Parallel list processing capabilities** | [[manual:chapter5:listproc#group-5one-argument-one-result-commands|Group 5]] | //One argument, one result commands// | | **Affected by flags** | //None// || </callout> <callout color="orangered" icon="fa fa-comment" title="Description"> ---- The ''→∡d'' command turns a scalar into an angle measured in degrees / minutes / seconds. The angle is entered / displayed as a real number in the format **DD.MMSSxxx...** where: * **DD** expresses the number of degrees; * **MM** expresses the number of minutes of arc and ranges from ''00'' to ''59''; * **SS** expresses the number of seconds of arc and ranges from ''00'' to ''59''; * **xxx...** expresses the remaining fraction of seconds of arc. When a scalar is converted to an angle in degrees / minutes / seconds no check is performed to ensure that the digits at **MM** and **SS** positions range from ''00'' to ''59''. However addition of ''0'' (or multiplication by ''1'') will return a properly //normalized// angle. </callout> <callout type="danger" icon="true" title="Compatibility"> ---- ''→∡d'' is specific to **newRPL** and has no direct equivalent in **userRPL**. </callout> <callout type="info" icon="true" title="Usage"> ---- To see how normalization works, let's enter an "incorrect" angle; for example $30° 75^{\prime} 10^{\prime\prime}$:\\ \\ **__Input__** <code> 4: 3: 2: 1: 30.751 ………………………………………………………………………………………………………… →∡d </code> \\ **__Output__** <code> 4: 3: 2: 1: ∡30.751d ………………………………………………………………………………………………………… </code> \\ To trigger normalization of $30° 75^{\prime} 10^{\prime\prime}$ it's sufficient to multiply it by ''1'':\\ \\ **__Input__** <code> 4: 3: 2: 1: ∡30.751d ………………………………………………………………………………………………………… 1 * </code> \\ **__Output__** <code> 4: 3: 2: 1: ∡31.151.d ………………………………………………………………………………………………………… </code> The normalized angle is $31° 15^{\prime} 10^{\prime\prime}$. </callout> <callout color="darkgray" icon="fa fa-hand-o-right" title="Related Commands"> ---- {{page>manual:chapter6:angles&nofooter&noeditbtn&inline}} </callout> manual/chapter6/angles/cmd_tagdms.txt Last modified: 2021/09/16 15:40by jojo1973