arithmetic operators

arithmetic operators


zsd Index Level array
Syntax
Category BASIC
Type Definition
Description add, subtract, multiply, and divide numeric operands in arithmetic expressions.

The simplest arithmetic expression is a single numeric constant, variable, or function. More complex arithmetic expressions may combine two or more expressions using an arithmetic operator.

If a string value is used in an arithmetic expression, the FlashBASIC runtime package attempts to convert it into a number. If it fails, "0" (zero) is used and a warning displays.
Options
See Also PRECISION arithmetic expressions precedence \= - *= += -= /= := + * run
Example total = (invoice.amount - discount) + tax
Warnings If a string value containing non-numeric characters is used in an arithmetic expression, a warning message is printed and zero is assumed for the string value.

[b16] in program 'pgm', line n:  Non-numeric data when numeric required; zero used.
Compatibility D3 7.0 AP R83
zsd Index Level array