## Numeric functions

ABS(`X`)

  Computes absolute value of argument.

COS(`X`)

  Returns cosine of angle given in radians.

CSRLIN

  Return the line the cursor is at.

EXP(`X`)

  Returns exponential of number.

FIX(`X`)

  Returns truncated value.

FRE(0)/FRE(`A$`)

  Returns the amount of memory available for programs or strings.

INT(`X`)

  Converts number to integer.

LOG(`X`)

  Returns natural logarithm of argument.

PEEK(`X`)

  Returns content of specified memory location X.

POS(`D`)

  Returns the horizontal position of the cursor of device `D`.

RND[(`X`)]

  Generates random number between 0 and 1. If `X` is negative, then seeds the random number generator.

  Pseudorandom number generator. The behavior is different depending on the value passed. If the value is positive, the result will be a new random value between 0 and 1 (including 0 but not 1). If the value is zero, the result will be a repeat of the last random number generated. If the value is negative, it will be used to reseed the random number generator. Pseudorandom sequences can be repeated by reseeding with the same number.
SGN(`X`)

  Returns sign of number as: 1 positive, 0 zero, -1 negative.

SIN(`X`)

  Returns sine of angle given in radians.

SPC(`X`)

  Writes `X` spaces.

SQR(`X`)

  Returns square root of number. Argument must be non-negative.

TAN(`X`)

  Returns tangent of angle given in radians.

VARPTR(`X`)

  Returns address of pointer to specified variable.