Neg

arithmetic-functions negative (-)

syntax

  • neg(a)
  • - a

definition

neg(a) or - a results in the negative values of data-item a.

applies to

Data item or unit with Numeric value-type

example

1. attribute<float32> negA (ADomain) := neg(A);
2. attribute<float32> negA (ADomain) := - A;
A negA
0 0
1 -1
-2 2
3.6 -3.6
999 -999

ADomain, nr of rows = 5

see also