==== →∡d ====
----
Mark a number as an angle in degrees / minutes / seconds
----
^ __Input Stack__ ^ ^ __Output Stack__ ^
| **Num** | **→** | **∡dms** |
| //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// ||
----
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.
----
''→∡d'' is specific to **newRPL** and has no direct equivalent in **userRPL**.
----
To see how normalization works, let's enter an "incorrect" angle; for example $30° 75^{\prime} 10^{\prime\prime}$:\\
\\
**__Input__**
4:
3:
2:
1: 30.751
…………………………………………………………………………………………………………
→∡d
\\
**__Output__**
4:
3:
2:
1: ∡30.751d
…………………………………………………………………………………………………………
\\
To trigger normalization of $30° 75^{\prime} 10^{\prime\prime}$ it's sufficient to multiply it by ''1'':\\
\\
**__Input__**
4:
3:
2:
1: ∡30.751d
…………………………………………………………………………………………………………
1 *
\\
**__Output__**
4:
3:
2:
1: ∡31.151.d
…………………………………………………………………………………………………………
The normalized angle is $31° 15^{\prime} 10^{\prime\prime}$.
----
{{page>manual:chapter6:angles&nofooter&noeditbtn&inline}}