Arbortext Command Language > Using the Arbortext Command Language > Multiplication, Division, Remainder
  
Multiplication, Division, Remainder
The order in which items appear in this table are arbitrary. All operators have equal precedence to ACL.
Multiplication, division, remainder table
*
$n * $m evaluates to the product of $n times $m.
/
$i / 9 evaluates to the value of $i divided by 9. Note that integer arithmetic is used; thus, if $len=30, the command $divvy=$len/9; message "$divvy" yields 3, not 3.3334.
%
5 % 2 evaluates to the remainder of 5 divided by 2, or “1”.
The following operators are numeric and require numeric operands:
+, -, *, /, &, ^, |, <<, >>, %, ~, ++, and ––
Related Topics
Functions as expressions and commands
Using expressions
Logical expressions
Operands