Operator Reference
tuple_sgn (Operator)
tuple_sgn — Calculate the sign of a tuple.
Signature
Description
tuple_sgn calculates the sign of the elements of the
input tuple T and returns them as integer numbers
(-1,0,1) in the output tuple Sgn.
The calculation of the sign of a string is not allowed.
Exception: Empty input tuple
If the input tuple is empty, the operator returns an empty tuple.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_sgn,
which can be used in an expression in the following syntax:
Sgn := sgn(T)
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
T (input_control) number(-array) → (real / integer)
Input tuple.
Sgn (output_control) number(-array) → (integer)
Signs of the input tuple as integer numbers.
Module
Foundation