PreviousNextIndex

/ Division operator

Divides one numeric expression by another numeric expression, producing a decimal result. This is the case for both INTEGER and INT64 expressions.

Syntax

expression / expression 

expression
Example

This procedure divides the number of items allocated by the number of items on hand, producing a decimal value. The multiplication operator (*) converts that decimal value to a percentage.

r-div.p
DISPLAY "INVENTORY COMMITMENTS AS A PERCENT OF UNITS ON HAND". 
FOR EACH Item NO-LOCK: 
  DISPLAY Item.ItemNum Item.ItemName Item.Allocated Item.OnHand  
   (Item.Allocated / Item.OnHand) * 100 FORMAT ">>9" LABEL "PCT". 
END. 

Notes
See also

* Multiplication operator


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex