home *** CD-ROM | disk | FTP | other *** search
- INTRINSIC (BUILT-IN) FUNCTIONS
-
- A FUNCTION, built-in or otherwise, can be used anywhere that
- an expression can be used. It can be a part of an expression,
- and it can have an expression as it's argument. It returns a
- single value, which is defined by the descriptions below.
- Some functions return string values, and some return numeric ones.
-
- ABS(<numeric expression>)
- Returns the absolute value of <numeric expression>. In other words,
- the expression is evaluated; if the result is minus, the minus
- sign is removed to make it positive.
- Examples: ABS(X-5*SIN(Y)) ABS(B^2-4*A*C)
-
- ASC(<string expression>)
- Returns the ASCII code of the first character of <string expression>.
- (i.e. the number which corresponds with the ASCII character)
- Examples: ASC("A") ASC(ANS$) ASC(A$(N))
-
- ATN(<numeric expression>)
- Returns the arctangent of <numeric expression>, which is in radians.
- Examples: ATN(RADIANS) ATN(DEGREES*PI/180) ATN(.053)
-
- * CALL(<numeric expression>,<numeric expression>)
- Calls a machine language subroutine at the address indicated by
- the first <numeric expression>, with the value of the second
- <numeric expression> in registers D&E. The CALL function
- evaluates to the number which is returned in registers D&E.
- Example: PRINT CALL(PLOT,X)
-
- CHR$(<numeric expression>)
- Returns a single character string whose ASCII code is <numeric expression>.
- Examples: CHR$(7) CHR$(48+NUM) CHR$(CONTROL)
-
- COS(<numeric expression>)
- Returns the cosine of the angle <numeric expression>, which
- is in radians. Example: COS(DEG*3.14159/180)
-
- EXP(<numeric expression>)
- Returns the constant e (2.718282) to the <numeric expression> power.
- Examples: EXP(1) EXP(0) EXP(X+Y*2)
-
- FRE(<expression>)
- Returns the amount of free (unused) space in memory.
- Examples: FRE("") FRE(0) FRE(1)
-
- * HEX(<hexadecimal string>)
- Returns the decimal equivalent of the <hexadecimal string>.
- Examples: LET ADDR=HEX(HADDR) FOR N=0 TO HEX(A)
-
- * HEX$(<numeric expression>)
- Returns the hexadecimal string representation of the decimal
- value of <numeric expression>.
- Examples: PRINT HEX$(ADR+OFFSET) PRINT HEX$(N)
-
-
-
- 9
-
-
-
-
-
-
-
-
-
-