Progress
Language Reference


/ Division Operator

Interfaces
OS
SpeedScript
All
All
Yes

Divides one numeric expression by another numeric expression, producing a decimal result.

SYNTAX

expression / expression 

expression

An expression that evaluates to a numeric value.

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:
  DISPLAY item.item-num item-name alloc on-hand (alloc / on-hand) * 100
    FORMAT ">>9" LABEL "PCT".
END. 

NOTES


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095