ClassesClassesClassesClasses | | | | Operators

tuple_sgntuple_sgnTupleSgntuple_sgnTupleSgnTupleSgn (Operator)


tuple_sgntuple_sgnTupleSgntuple_sgnTupleSgnTupleSgn — Calculate the sign of a tuple.


tuple_sgn( : : T : Sgn)

Herror tuple_sgn(double T, Hlong* Sgn)

Herror T_tuple_sgn(const Htuple T, Htuple* Sgn)

Herror tuple_sgn(const HTuple& T, Hlong* Sgn)

Herror tuple_sgn(const HTuple& T, HTuple* Sgn)

void TupleSgn(const HTuple& T, HTuple* Sgn)

HTuple HTuple::TupleSgn() const

void HOperatorSetX.TupleSgn(
[in] VARIANT T, [out] VARIANT* Sgn)

VARIANT HTupleX.TupleSgn([in] VARIANT T)

static void HOperatorSet.TupleSgn(HTuple t, out HTuple sgn)

HTuple HTuple.TupleSgn()


tuple_sgntuple_sgnTupleSgntuple_sgnTupleSgnTupleSgn calculates the sign of the elements of the input tuple TTTTTt and returns them as integer numbers (-1,0,1) in the output tuple SgnSgnSgnSgnSgnsgn. 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_sgntuple_sgnTupleSgntuple_sgnTupleSgnTupleSgn, which can be used in an expression in the following syntax:

Sgn := sgn(T)



TTTTTt (input_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Input tuple.

SgnSgnSgnSgnSgnsgn (output_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Signs of the input tuple as integer numbers.



ClassesClassesClassesClasses | | | | Operators