diff options
-rw-r--r-- | README.md | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -289,7 +289,6 @@ The operator precedence is based on that of C. | **KEYWORD** | **DOES** | |-------------------------------|-| -| `ABS n` | Return the absolute value of `n` | | `ASC(s$[, n])` | Return the byte value of the first or `n`th character of `s$` | | `BIN s$ n` | Append the binary representation of `n` to `s$` | | `CALL fun(...)` | Call native function `fun` with arguments `...` | @@ -328,6 +327,20 @@ The operator precedence is based on that of C. | `VAL(s$)` | Returns the numerical value of a string | | `WEND` | Go back to the last `WHILE`. Must occur by itself, not inside an IF or similar. | | `WHILE cond` | Loop as long as `cond` is nonzero. | +| *Mathematical functions* | | +| `ABS n` | Return the absolute value of `n` | +| `ATN n` | Arctangent of `n` (floating point only) | +| `COS n` | Cosine of `n` (floating point only) | +| `LOG n` | Natural logarithm of `n` (floating point only) | +| `SIN n` | Sine of `n` (floating point only) | +| `SQR n` | Square root of `n` (floating point only) | +| `TAN n` | Tangent of `n` (floating point only) | +| `EXP n` | Exponential of `n` (floating point only) | +| `SGN n` | Signum of `n` (-1, 0, or 1 depending on sign) | +| `RND` | Random number between 0 and 65535 +| *Type conversions* | | +| `INT n` | Convert `n` to integer | +| `FLOAT n` | Convert `n` to floating point | (TODO: define file I/O variables. This will probably look nothing like traditional BASICs) |