xHarbour Reference Documentation > Operator Reference xHarbour Developers Network  

*

Multiplication operator (binary): multiplys numeric values.

Syntax

<nNumber1> * <nNumber2>

Arguments

<nNumber1>
<nNumber1> is numeric expression to multiply with <nNumber2>.
<nNumber2>
<nNumber2> is numeric expression to multiply with <nNumber1>.

Description

This operator multiplies the value of <nNumber1> with the value of <nValue2> and returns the result.

Info

See also:%, **, +, -, /, = (compound assignment), SET DECIMALS, SET FIXED
Category: Mathematical operators , Operators
LIB:xhb.lib
DLL:xhbdll.dll

Example

// 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

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe