# ABSS

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

# Description

The ABSS function returns the absolute values of all the elements in a dynamic array. If an element in the dynamic array is null, it returns null for that element.

It takes the general form:

ABSS (dynamic.array)
1

An example of use is as:

subtrahends = 500 : @VM : 400 : @VM : 300 : @SM :200 : @SM : 100
differences = SUBS(REUSE(300), subtrahends)
CRT "differences = " : differences
CRT "Result of ABSS(differences) is " : ABSS (differences)
1
2
3
4

The output of this program is:

differences = -200ÿ-100ÿ0ü100ü200
Result of ABSS(differences) is 200ÿ100ÿ0ü100ü200
1
2

Go back to jBASE BASIC

Go back to Programmers' Reference Guide