Appendix A: Function and Instruction Reference 293
73A-ENG.DOC AppxA: Function/Instruction Reference, English Julie Hewlett Revised: 07/29/98 1:10 PM Printed:
05/19/99 9:03 AM Page 293 of 36
Input
Input [variable]
Input ["text",variable]
8I/O
Programming command; Input, with no arguments,
displays the current graph. Otherwise, Input accepts
input and stores it to variable (prompted by a ?,
unless otherwise defined). text designates a specific
text prompt (16 characters), if desired, and must be
enclosed in quotation marks.
PROGRAM:INPUTVAR
:Input "Y =",Y
:Input "A=",A
:Input "
¨DATA=",¨DATA
:Disp "Y(A)=",Y (A)
:Pause
:Disp
:"Y(¨DATA) =",Y (¨DATA)
:Pause
:PROGRAM:GRPHINPT
:FnOff
:PlotsOff
:ZStandard
:Input
:Line (0,0,8,8)
:Pause
int(value)
-|
Returns the largest integer value, where value can be a
real number, expression, or list.
For a negative non-integer, int returns the integer that is
one less than the integer part of the number. To return
the exact integer part, use iPart instead.
int (23.45)
b23
int (
L23.45) bL24
posintegerA IntàposintegerB
Divides two positive integers and displays the
quotient and the remainder, r.
9 Intà 2 b4r1
iPart(value)
1NUM
Returns the integer part of a real number, expression,
or each element of a list.
iPart (23.45)
b23
iPart (
L17.26¦8) bL138
iPart ({1.2,3.4,5.6})
b
{1 3 5}
iPart(11
2)1
:IS>(variable,value)
:command1 (if answer is value)
:command2
8CTL
Programming command (increment and skip if
greater than); adds variable by 1. If the answer is >
value, then command1 is skipped; if the answer is
value, then command1 is executed. command2 is
always executed.
:PROGRAM:IS
:0ÜA
:Lbl S
:Disp A
:IS>(A,5)
:Goto S
:Disp "A IS NOW >5"
:Pause