PreviousNextIndex

ROUND function

Rounds a decimal expression to a specified number of places after the decimal point.

Syntax

ROUND ( expression , precision ) 

expression
precision
Example

This procedure increases all CreditLimit values by 10 percent, rounding those values to the nearest $100:

r-round.p
FOR EACH Customer: 
  DISPLAY Customer.CustNum Customer.Name Customer.CreditLimit. 
  Customer.CreditLimit = ROUND((Customer.CreditLimit * 1.1) / 100 ,0) * 100. 
  PAUSE. 
  DISPLAY Customer.CreditLimit. 
END. 

See also

TRUNCATE function


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex