ClassesClassesClassesClasses | | | | Operators

tuple_subtuple_subTupleSubtuple_subTupleSubTupleSub (Operator)


tuple_subtuple_subTupleSubtuple_subTupleSubTupleSub — Subtract two tuples.


tuple_sub( : : D1, D2 : Diff)

Herror tuple_sub(double D1, double D2, double* Diff)

Herror T_tuple_sub(const Htuple D1, const Htuple D2, Htuple* Diff)

Herror tuple_sub(const HTuple& D1, const HTuple& D2, double* Diff)

Herror tuple_sub(const HTuple& D1, const HTuple& D2, HTuple* Diff)

void TupleSub(const HTuple& D1, const HTuple& D2, HTuple* Diff)

HTuple HTuple::TupleSub(const HTuple& D2) const

void HOperatorSetX.TupleSub(
[in] VARIANT D1, [in] VARIANT D2, [out] VARIANT* Diff)

VARIANT HTupleX.TupleSub(
[in] VARIANT D1, [in] VARIANT D2)

static void HOperatorSet.TupleSub(HTuple d1, HTuple d2, out HTuple diff)

HTuple HTuple.TupleSub(HTuple d2)


tuple_subtuple_subTupleSubtuple_subTupleSubTupleSub computes the difference of the input tuples D1D1D1D1D1d1 and D2D2D2D2D2d2. If both tuples have the same length the corresponding elements of both tuples are subtracted. Otherwise, either D1D1D1D1D1d1 or D2D2D2D2D2d2 must have length 1. In this case, the subtraction is performed for each element of the longer tuple with the single element of the other tuple. If two integer numbers are subtracted, the result is again an integer number. If one of the operands is a floating point number, the result is a floating point number. The subtraction of strings is not allowed.

Exception: Empty input tuples

If either or both of the input tuples are empty, the operator returns an empty tuple.

HDevelop In-line Operation

HDevelop provides an in-line operation for tuple_subtuple_subTupleSubtuple_subTupleSubTupleSub, which can be used in an expression in the following syntax:

Diff := D1 - D2



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

Input tuple 1.

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

Input tuple 2.

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

Difference of the input tuples.





ClassesClassesClassesClasses | | | | Operators