| xHarbour Reference Documentation > Operator Reference |
![]() |
![]() |
![]() |
Multiplication operator (binary): multiplys numeric values.
<nNumber1> * <nNumber2>
This operator multiplies the value of <nNumber1> with the value of <nValue2> and returns the result.
| See also: | %, **, +, -, /, = (compound assignment), SET DECIMALS, SET FIXED |
| Category: | Mathematical operators , Operators |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example shows the behavior of the "*" operand in different
// situations.
PROCEDURE Main
? 3 * 1 // result: 3
? 3 * -1 // result: -1
? -4 * -2 // result: 8
RETURN
http://www.xHarbour.com