A→∡d


Synopsis


Convert an angle to degrees / minutes / seconds

Stack Diagram


Input Stack Output Stack
Num DMS
Z ZDMS
DMS
V VDMS
Level 1 Level 1

Legend

Type Command
Parallel list processing Group 5
Affected by flags -17 Angular Mode 1
-18 Angular Mode 2

Description


The A→∡d command turns a scalar or a suitable component of a composite object into an angle measured in degrees / minutes / seconds.

In particular, if the component is:

  • a scalar, then the number is interpreted as an angle in the current angular mode and converted to degrees / minutes / seconds;
  • a rectangular complex number, nothing happens;
  • a polar complex number, then the angular component is converted to degrees / minutes / seconds;
  • an angle, then the angle is converted to degrees / minutes / seconds;
  • a vector, then any angle or polar complex number but not scalars is converted to degrees / minutes / seconds as per above rules.

The angle is 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.

Compatibility


This command is new in newRPL and does not exist in userRPL.

Usage


1:  [ #2h ∡20g (1,2) (3,∡5.5°) ]
……………………………………………………………………………………
A→∡d

will result in

1:  [ #2h ∡18d (1,2) (3,∡5.3d) ]
……………………………………………………………………………………

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_angtodms.txt
  • Last modified: 2019/11/06 15:36
  • by jojo1973