3.4.6 Multiplying operators

Multiplying operators perform multiplication (*), division (/), and remainder calculation (%).

Organization of this subsection
(1) Format
(2) Description
(3) Example of coding
(4) Notes

(1) Format

Multiplicative expression

expression * expression

Divisional expression

expression / expression

Remainder calculation expression

expression % expression

(2) Description

Multiplying operators perform normal arithmetic conversion for operands, according to the data type. Both of the operands must have numeric values. If one or both of the operands are of the string type, this results in an error.

(3) Example of coding

MAIN
{
if (sloop_cnt > 10)
  AIT_Sleep(SLEEP_TIME / 2);
else
  AIT_Sleep(SLEEP_TIME * 2);
endif;
}

(4) Notes