ADD

Function

Adds one number to another.

Syntax

ADD {src_num_lit|_var|_col} TO dst_num_var [ROUND=nn]

Arguments

src_num_lit|_var|_col

Numeric source value added to dst_num_var.

dst_num_var

Numeric destination variable containing results after execution.

ROUND

Results rounded to the number of digits to the right of the decimal point. Float variables: valid values are 0 to 15. Decimal variables: valid values are 0 to the precision of the variable. Integer variables: N/A.

Description

The source value is added to the destination variable and the result is placed in the destination. Source is always first and destination is always second. Money-related values (dollars and cents) use decimal variables.

Examples

add  10  to  #counter
add  #counter  to  #new_count
add  &price  to  #total  round=2

See Also

LET for information on complex arithmetic expressions