| xHarbour Reference Documentation > Operator Reference |  | 
|  |  |  | 
Division operator (binary): divides numeric values.
<nNumber1> / <nNumber2>
This operator returns the division of <nNumber1> by <nNumber2> as a numeric value.
| See also: | % | 
| Category: | Mathematical operators , Operators | 
| LIB: | xhb.lib | 
| DLL: | xhbdll.dll | 
// The example shows the use of the "/" operator:
   PROCEDURE Main
      ?  3 / 3                         // result: 1
      ?  3 /-2                         // result: -1.50
      ? -3 / 2                         // result: -1.50
      ? -3 /-2                         // result: 1.50
      ?  3 / 0                         // result: 0
   RETURN
http://www.xHarbour.com