Press on the image to return to the main documentation page. |

It supports the arithmetic sub-set of the full Basic4android language.

Operators in precedence order are

^ : exponent

* / mod : multiply, divide and modulus, % is also accepted for mod

+ - : add and subtract

Functions supported are

COS(r), SIN(r), TAN(r), ACOS(n), ASIN(n), ATAN(n) : radians

COSD(d), SINDd), TANDd), ACOSD(n), ASIND(n), ATAND(n) : degrees

LN(n) base e, LOG(n) base 10, LOGARITHM(n, base) any base

SQRT(n), FLOOR(n), ABS(n), MAX(n1, n2), MIN(n1, n2), POWER(n, exp), ROUND(n)

Constants recognised are

CPI : Pi

CE : e

Twenty-six case-insensitive variables are supported named from "A" to "Z" and must be intialised with the required value before being used in an evaluation.

Although the actual variable names are a single letter longer names are accepted but only the initial letter is used to identify the variable.

Variable values are maintained across evaluations.

If the error is a NullPointerException or a StringIndexException then the evaluated expression was ill-formed.

If an error occurs zero is returned and the Error property will contain the reason.

Twenty-six case-insensitive variables are supported named from "A" to "Z" longer names are accepted but only the initial letter is used.

Twenty-six case-insensitive variables are supported named from "A" to "Z" longer names are accepted but only the initial letter is used.

Top