ClassesClassesClassesClasses | | | | Operators

tuple_negtuple_negTupleNegtuple_negTupleNegTupleNeg (Operator)


tuple_negtuple_negTupleNegtuple_negTupleNegTupleNeg — Negate a tuple.


tuple_neg( : : T : Neg)

Herror tuple_neg(double T, double* Neg)

Herror T_tuple_neg(const Htuple T, Htuple* Neg)

Herror tuple_neg(const HTuple& T, double* Neg)

Herror tuple_neg(const HTuple& T, HTuple* Neg)

void TupleNeg(const HTuple& T, HTuple* Neg)

HTuple HTuple::TupleNeg() const

void HOperatorSetX.TupleNeg(
[in] VARIANT T, [out] VARIANT* Neg)

VARIANT HTupleX.TupleNeg([in] VARIANT T)

static void HOperatorSet.TupleNeg(HTuple t, out HTuple neg)

HTuple HTuple.TupleNeg()


tuple_negtuple_negTupleNegtuple_negTupleNegTupleNeg computes the negation of the input tuple TTTTTt, i.e., NegNegNegNegNegneg = -TTTTTt. The negation of an integer number is again an integer number. The negation of a floating point number is a floating point number. The negation 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_negtuple_negTupleNegtuple_negTupleNegTupleNeg, which can be used in an expression in the following syntax:

Neg := -T



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

Input tuple.

NegNegNegNegNegneg (output_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Negation of the input tuple.



ClassesClassesClassesClasses | | | | Operators