basic.summation

Function/BASIC Program, Releases: AP 6.2 and R91

Returns the sum of a list of numbers

Syntax

summation(string.expression)

Description

returns the sum of a list of numbers delimited by attribute, value, or subvalue marks. If different orders of marks are present, the 'summation' function will add the contents of all fields regardless of delimiter.

Example

$options ext
equ am to char(254)
print summation(3:am:3.2)

The result, '6.2', will be printed to the terminal.

See Also

Command Name Type Description
basic.$options Statement Sets compatibility options for the BASIC compiler.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.