Appendix A: Functions and Instructions
801
getDenom()
MATH/Algebra/Extract menu
getDenom(
expression1
)
⇒
expression
Transforms
expression1
into one having a reduced
common denominator, and then returns its
denominator.
getDenom((x+2)/(y
ì
3))
¸
y
ì
3
getDenom(2/7)
¸
7
getDenom(1/x+(y^2+y)/y^2)
¸
x
ø
y
getDtFmt()
CATALOG
getDtFmt()
⇒
integer
Returns an integer representing the date format that
is currently set on the device.
Integer values:
1 = MM/DD/YY
2 = DD/MM/YY
3 = MM.DD.YY
4 = DD.MM.YY
5 = YY.MM.DD
6 = MM-DD-YY
7 = DD-MM-YY
8 = YY-MM-DD
getDtStr()
CATALOG
getDtStr(
[
integer]
)
⇒
string
Returns a string of the current date in the current
date format. For example, a returned string of
28/09/02
represents the 28th day of September,
2002 (when the date format is set to
DD/MM/YY
).
If you enter the optional integer that corresponds to
a date format, the string returns the current date in
the specified format.
Optional integer values:
1 = MM/DD/YY
2 = DD/MM/YY
3 = MM.DD.YY
4 = DD.MM.YY
5 = YY.MM.DD
6 = MM-DD-YY
7 = DD-MM-YY
8 = YY-MM-DD
getFold()
CATALOG
getFold()
⇒
nameString
Returns the name of the current folder as a string.
getFold()
¸
"main"
getFold()
!
oldfoldr
¸
"main"
oldfoldr
¸
"main"
getKey()
CATALOG
getKey()
⇒
integer
Returns the key code of the key pressed. Returns 0
if no key is pressed.
The prefix keys (shift
¤
,
second function
2
,
option
¥
, alpha
j
, and drag
‚
) are not
recognized by themselves; however, they modify
the keycodes of the key that follows them. For
example:
¥ Ù
ƒ
Ù
ƒ
2 Ù
.
For a listing of key codes, see Appendix B.
Program listing:
:Disp
:Loop
: getKey()
!
key
: while key=0
: getKey()
!
key
: EndWhile
: Disp key
: If key = ord("a")
: Stop
:EndLoop
Summary of Contents for Titanium TI-89
Page 9: ...Getting Started 6 TI 89 Titanium keys Ë Ì Í Ê ...
Page 34: ...Getting Started 31 2 or D 2 B u s i n e s s D B D B Press Result ...
Page 43: ...Getting Started 40 3 0 D B D D B D Press Result ...
Page 44: ...Getting Started 41 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Page 58: ...Getting Started 55 Example Set split screen mode to TOP BOTTOM Press Result 3 B D ...
Page 70: ...Getting Started 67 ...
Page 175: ...Operating the Calculator 172 From the Keyboard ...
Page 456: ...Tables 453 ...
Page 527: ...Data Matrix Editor 524 ...