AKD BASIC User Guide | 4 Quick Reference: Parameters, Functions, Operators
Parameter Type Description
ASC() Function ASC(string expression)returns a decimal numeric value
that is the ASCII code for the first character of the string
expression(x$).
ATAN() Function ATAN() (arc tangent) returns the arctangent of its argument
in radians.
CHR$() Function Returns a one character string whose ASCII value is the
argument.
CINT() Function Converts a numeric expression to the closest integer
number.
COS() Function COS(x) returns the cosine of x, where x is in radians.
EXP() Function Returns e (the base of natural logarithms) raised to a
power.
FIX() Function Fix() returns the truncated integer part of x.
HEX$() Function HEX$() converts an integer number to its equivalent hex-
adecimal ASCII string.
INKEY$() Function Returns a 1 character string corresponding to the character
in the serial port receive buffer. If there is no character wait-
ing the INKEY$ will be the Null string (""). If several char-
acters are pending only the first one is returned.
INSTR() Function Returns the starting location of a substring within a string.
INT() Function INT() (convert to largest integer) truncates an expression to
a whole number.
LCASE$() Function Converts a string expression to lowercase characters.
LEFT$() Function Returns a string of the n leftmost characters in a string
expression.
LEN() Function Returns the number of characters in a string expression.
LOG() Function Returns the natural logarithm of a numeric expression.
LOG10() Function Returns the base 10 logarithm of a numeric expression.
LTRIM$() Function Returns a copy of the original string with leading blanks
removed.
MID$ Function Returns a substring of the original string that begins at the
specified offset location and is of the specified (optional)
length.
OCT$() Function OCT$() converts an integer number to its equivalent octal
ASCII string.
RIGHT$() Function Returns a string of the n rightmost characters in a string
expression.
RTRIM$() Function Returns a copy of the original string with trailing blanks
removed.
SGN() Function Returns the sign of a numeric expression.
SIN() Function SIN(x) returns the sine of x, where x is in radians.
SPACE$() Function Returns a string of n spaces.
SQR() Function Returns the square root of a numeric expression.
STR$() Function Returns a string representing the value of a numeric expres-
sion.
STRING$() Function Returns a string containing the specified number of occur-
rences of the specified character.
57 Kollmorgenâ„¢ | March 30, 2012