tuple_mintuple_minTupleMinTupleMin (Operator)

Name

tuple_mintuple_minTupleMinTupleMin — Bestimmen des minimalen Elements eines Tupels.

Signatur

tuple_min( : : Tuple : Min)

Herror tuple_min(const Hlong Tuple, double* Min)

Herror T_tuple_min(const Htuple Tuple, Htuple* Min)

void TupleMin(const HTuple& Tuple, HTuple* Min)

HTuple HTuple::TupleMin() const

static void HOperatorSet.TupleMin(HTuple tuple, out HTuple min)

HTuple HTuple.TupleMin()

Beschreibung

tuple_mintuple_minTupleMinTupleMinTupleMin bestimmt das minimale Element von allen Elementen des Eingabetupels TupleTupleTupleTupletuple und liefert es in dem Ausgabeparameter MinMinMinMinmin zurück. Das Eingabetupel muss hierfür entweder durchwegs Strings enthalten oder ausschließlich (ganze oder Gleitkomma-)Zahlen beinhalten. Eine Mischung aus Strings und Zahlen ist nicht erlaubt. Das Ergebnis besteht in einer Gleitkommazahl, sobald mindestens ein Element des Eingabetupels eine Gleitkommazahl ist. Falls alle Elemente von TupleTupleTupleTupletuple hingegen ganze Zahlen sind, so besteht auch MinMinMinMinmin aus einer ganzen Zahl.

Sonderfall: Leeres Eingabetupel

Falls das Eingabetupel leer ist, wird eine Fehlermeldung angezeigt.

HDevelop Inline-Operation

HDevelop unterstützt eine Inline-Operation für tuple_mintuple_minTupleMinTupleMinTupleMin, die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden kann:

Min := min(Tuple)

Ausführungsinformationen

Parameter

TupleTupleTupleTupletuple (input_control)  tuple(-array) HTupleHTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)

Eingabetupel.

MinMinMinMinmin (output_control)  tuple(-array) HTupleHTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Minimales Element aller Eingabetupelelemente.

Alternativen

tuple_maxtuple_maxTupleMaxTupleMaxTupleMax, tuple_meantuple_meanTupleMeanTupleMeanTupleMean, tuple_deviationtuple_deviationTupleDeviationTupleDeviationTupleDeviation, tuple_sumtuple_sumTupleSumTupleSumTupleSum, tuple_lengthtuple_lengthTupleLengthTupleLengthTupleLength, tuple_mediantuple_medianTupleMedianTupleMedianTupleMedian

Siehe auch

tuple_max2tuple_max2TupleMax2TupleMax2TupleMax2, tuple_min2tuple_min2TupleMin2TupleMin2TupleMin2

Modul

Foundation