Syntax
multiplicative-expr * cast-expr multiplicative-expr / cast-expr multiplicative-expr % cast-expr
Remarks
There are three multiplicative operators:
(op1 * op2) Product of the two operands
(op1 / op2) Quotient of (op1 divided by op2)
(op1 % op2) Remainder of (op1 divided by op2)
For / and %, op2 must be nonzero op2 = 0 results in an error. (You can't divide by zero.)
When op1 and op2 are integers and the quotient is not an integer:
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|