Skip to content
mtbeek32 edited this page Jan 25, 2024 · 9 revisions

Arithmetic functions absolute (||)

syntax

  • abs(a)

definition

abs(a) results in the absolute values (|a|) of data item a, meaning a if a >= 0 and -a if a < 0.

applies to

Data item with int8, int16, int32, float32 or float64 value type

example

1. attribute<float32> absA (ADomain) := abs(A);

A absA
0 0
1 1
-2 2
3.6 3.6
999 999

ADomain, nr of rows = 5

Clone this wiki locally