EXP
From C64-Wiki
| BASIC keyword | |
| Keyword: | EXP |
| Abbreviation: | E Shift+X |
| Type: | Function |
| Token code: | 189/$BD |
| Handling routine in BASIC ROM: | 49133–57410 $BFED–E042 |
| List of all BASIC keywords | |
Remark: This article describes the BASIC-Command EXP in BASIC V2 at the Commodore 64.
Typ: Numeric Function General Programming-Syntax: EXP(<Number>)
EXP is a mathemathical function for this number to the power of the constant e (2.71828183).
By values over 89.0296919 it appears the BASIC error ?OVERFLOW ERROR IN line. Under -89.0296919 is the value always 0.
When the term isn't a number, the BASIC error ?TYPE MISMATCH ERROR IN line occurrs. When the numeric argument is absent, it appears a ?SYNTAX ERROR IN line.
[edit] Examples
PRINT EXP(0) Screen: 1 PRINT EXP(-1) Screen: 0.367879441 PRINT EXP(1) Screen: 2.71828183
ABS | AND | ASC | ATN | CHR$ | CLOSE | CLR | CMD | CONT | COS | DATA | DEF | DIM | END | EXP | FN | FOR | FRE | GET | GET# | GOSUB | GOTO | IF | INPUT | INPUT# | INT | LEFT$ | LEN | LET | LIST | LOAD | LOG | MID$ | NEW | NEXT | NOT | ON | OPEN | OR | PEEK | POKE | POS | PRINT | PRINT# | READ | REM | RESTORE | RETURN | RIGHT$ | RND | RUN | SAVE | SGN | SIN | SPC( | SQR | STATUS/ST | STEP | STOP | STR$ | SYS | TAB( | TAN | THEN | TIME/TI | TIME$/TI$ | TO | USR | VAL | VERIFY | WAIT
