Commodore 64 User Manual page 136

Hide thumbs Also See for 64:
Table of Contents

Advertisement

O
COS(X) (cosine)
Returns the value of the cosine of X, where X is an angle measured in
radians.
EXP(X)
0
Returns the value of the mathematical constant e(2.71827183) raised
0
to the power of X.
FNxx(X)
Returns the value of the user-defined function xx created in a DEF
FNxx(X) statement.
0
A
way
INT(X)
0
Returns the truncated value of X, that is, with all the decimal places
to the right of the decimal point removed. The result will always be less
than, or equal to, X. Thus, any negative numbers with decimal places
will become the integer less than their current value.
LOG(X) ( logarithm)
Will return the natural log of X. The natural log to the base e (see
EXP(X)). To convert to log base 10, simply divide by LOG(10).
PEEK(X)
Used to find out contents of memory location X, in the range 0-65535,
giving a result from 0-255. PEEK is often used in conjunction with the
POKE statement.
RND(X ) ( random number)
RND(X) returns a random number in the range 0-1. The first random
number should be generated by the formula RND(-TI) to start things off
differently every time. After this, X should be a 1 or any positive
number. If X is zero, the result will be the same random number as the
last one.
126
ft
0

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Commodore 64

Table of Contents