manual:chapter6:angles:cmd_tagdms

Synopsis


Mark a number as an angle in degrees / minutes / seconds

Stack Diagram


Input Stack Output Stack
Num dms
Level 1 Level 1

Legend

Keyword type Command
Parallel list processing capabilities Group 5 One argument, one result commands
Affected by flags None

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.

Compatibility


→∡d is specific to newRPL and has no direct equivalent in userRPL.

Usage


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}$.

Related Commands


Operations with Angles 11 NEW

Command Short Description
→∡° Mark a number as an angle in degrees NEW
→∡r Mark a number as an angle in radians NEW
→∡g Mark a number as an angle in grads (gons) NEW
→∡d Mark a number as an angle in DMS (DD.MMSS) NEW
A→∡° Convert an angle to degrees NEW
A→∡r Convert an angle to radians NEW
A→∡g Convert an angle to grads (gons) NEW
A→∡d Convert an angle to DMS (DD.MMSS) NEW
→RECT Convert vector or complex to cartesian coordinates NEW
→POLAR Convert vector or complex to polar coordinates NEW
→SPHER Convert vector or complex to spherical coordinates NEW
  • manual/chapter6/angles/cmd_tagdms.txt
  • Last modified: 2021/09/16 15:40
  • by jojo1973