TI-BASIC:Dms

From Learn @ Cemetech
Revision as of 23:21, 24 February 2016 by Maintenance script (talk | contribs) (Automated internal link correction)
Jump to navigationJump to search

DMS.GIF

Command Summary

Formats a displayed number as a degree-minute-second angle.

Command Syntax

value►DMS

Menu Location

Press:

  1. 2nd ANGLE to access the angle menu.
  2. 4 to select ►DMS, or use arrows and ENTER.

Calculator Compatibility

TI-83/84/+/SE

Token Size

1 byte

The ►DMS command can be used when displaying a real number on the home screen, or with the Disp and Pause commands. It will then format the number as an angle with degree, minute, and second parts.

30►DMS
	30°0'0"
100/9°►DMS
	11°6'40"

It will also work when displaying a number by putting it on the last line of a program by itself. It does not work with Output(, Text(, or any other more complicated display commands.

Although the ►DMS is meant as a way to format angles in Degree mode, it doesn't depend on the angle mode chosen, only on the number itself. Note that entering a number as degree°minutesecond" will also work, in any mode, and it will not be converted to radians in Radian mode.

Error Conditions

  • ERR:SYNTAX is thrown if the command is used somewhere other than the allowed display commands.
  • ERR:DATA TYPE is thrown if the value is complex, or if given a list or matrix as argument.

Related Commands