Texas Instruments TI-92 Calculator User Manual


 
454 Appendix A: Functions and Instructions
8992APPA.DOC TI-89 / TI-92 Plus: Appendix A (US English) Susan Gullord Revised: 02/23/01 1:48 PM Printed: 02/23/01 2:21 PM Page 454 of 132
getType()
CATALOG
getType(
var
)
string
Returns a string indicating the data type of
variable
var
.
If
var
has not been defined, returns the string
"
NONE
".
{1,2,3}
!
temp
¸
{1 2 3}
getType
(
temp
)
¸
"LIST"
2+3
i
!
temp
¸
2
+
3
i
getType
(
temp
)
¸
"EXPR"
DelVar temp
¸
Done
getType
(
temp
)
¸
"NONE"
Data Type Variable Contents
"ASM" Assembly-language program
"DATA" Data type
"EXPR" Expression (includes complex/arbitrary/undefined,
ˆ
,
ë
ˆ
, TRUE,
FALSE, pi,
e
)
"FUNC" Function
"GDB" Graph data base
"LIST" List
"MAT" Matrix
"NONE" Variable does not exist
"NUM" Real number
"OTHER" Miscellaneous data type for future use by software applications
"PIC" Picture
"PRGM" Program
"STR" String
"TEXT" Text type
"VAR" Name of another variable
getUnits()
CATALOG
getUnits()
list
Returns a list of strings that contain the
current default units for all categories except
constants, temperature, amount of substance,
luminous intensity, and acceleration.
list
has
the form:
{"
system
" "
cat1
" "
unit1
" "
cat2
" "
unit2
" …}
The first string gives the system (
SI
,
ENG/US
,
or
CUSTOM
). Subsequent pairs of strings give
a category (such as Length) and its default
unit (such as _m for meters).
To set the default units, use
setUnits()
.
getUnits()
¸
{
"SI" "
A
rea" "NONE"
"Capacitance" "_F"
"C
h
arge" "_cou
l
"
}
Note: Your screen may display different
default units.