ANSI BASIC This American National Standard specifies the form for and the interpretation of programs written in the BASIC programming languages for use on computers and information processing systems. Its purpose is to promote portability of BASIC programs for use on a variety of machines. This standard was processed and approved for submittal to ANSI by the Accredited Standards Committee on Information Processing Systems, X3.
ACCESS
ABS(numeric-expression) Returns absolute value. Always a non negative number. Examples: 100 PRINT ABS(42.3) 100 VV=ABS(-6.124)
ACOS(X) The arccosine of X in radians or degrees, where 0 < ACOS(X) < pi; X shall be in the range -1 < X < 1.
AND
ANGLE (X, Y) The angle in radians or degrees between the positive x-axis and the vector joining the origin to the point with coordinates (X,Y), where -pi < ANGLE (X,Y) < pi . X and Y shall not both be 0. Note that counterclockwise is positive ( e . g . , ANGLE ( 1 , 1 ) = 45 degrees).
AREA AREA STYLE AREA STYLE INDEX AREA COLOR Example: 100 SET FILL AREA COLOUR INDEX
ARITHMETIC Example: ARITHMETIC FIXED*8.2
ARRAY
ASIN(X) The arcsine of X in radians or degrees, where -pi/2 < ASIN(X) < pi/2; X shall be in the range -1 < X < 1 .
ASK The ASK statement is used to inquire about the current status of the file. ASK may be used to determine whether a particular device supports capabilities Example: 100 OPEN #3: NAME "myfile" 200 ASK #3: ACCESS AC$
AT
ATN(radian-expression) Returns trigonometric Arctangent - the angle (in radians) whose tangent is x. The arctangent of X in radians or degrees, i.e., the angle whose tangent is X, where -(pi/2) < ATN(X) < (pi/2).
BASE
BEGIN
BREAK Causes the program to halt.
CALL
CASE
CAUSE
CEIL ( X ) The smallest integer not less than X.
CELLS
CHAIN
CHOICE
CLEAR
CLIP
CLOSE Discontinues association between a file and a program and optionally erases a file.
COLLATE
COLOR
CONNECT
CONTINUE
COS (X) The cosine of X, where X is in radians or degrees.
DATA
DATE The current date in decimal form YYDDD, where YY are the last two digits of the year and DDD is the ordinal number of the current day of the year (e.g., the value of DATE on May 9, 1977 was 77129). If there is no calendar available, then the value of DATE shall be -1.
DATUM
DEBUG
DRAW
END Terminates program execution.
EOF(numeric-expression) Returns the end-of-file condition of the specified file.
EXP ( X ) The exponential of X, i . e . , the value of the base of natural logarithms (e = 2.71828...) raised to the power X; if EXP(X) is less than machine infinites¬ imal, then its value shall be replaced by zero.
GET
GOSUB
GOTO
IF
INPUT
LET Examples LET P = 3.14159 LET A(X, 3 ) = SIN ( X ) *Y + 1 LET A, Y ( I ) , Z = I + 1 LET T ( I , J ) , I , J = I + J
LSET
MAXNUM The largest finite positive number representable and manipulable by the implementation; implementationdefined. MAXNUM may represent different numbers for different arithmetic options.
MID$ To replace a portion of one string with another string
MIN ( X, Y) The smaller (algebraically) of X and Y.
MOD ( X , Y) X modulo Y, i.e., X-Y*INT(X/Y) . Y shall not equal zero .
OPEN
OUT
POKE
PRINT Examples: PRINT X PRINT X, Y PRINT X, Y, Z, PRINT ,,,X PRINT PRINT "X EQUALS", 10 PRINT X; ( Y+Z ) / 2 PRINT TAB (10); A$ ; "IS DONE.
READ
REM
SET Examples: SET MARGIN 120 SET ZONEWIDTH 20
STOP