Progress
Language Reference


+ Addition Operator

Interfaces
OS
SpeedScript
All
All
Yes

Adds two numeric expressions.

SYNTAX

expression + expression 

expression

An expression whose value is numeric.

EXAMPLE

The addition operator (+) adds 100 to the value of the credit-limit field.

r-addn.p
FOR EACH customer:
  credit-limit = credit-limit + 100.
END. 

NOTE

Adding two decimal expressions produces a decimal value. Adding two integer expressions produces an integer value. Adding an integer expression and a decimal expression produces a decimal value.


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