tuple_inttuple_intTupleIntTupleInttuple_int (Operator)

Name

tuple_inttuple_intTupleIntTupleInttuple_int — Konvertieren eines Tupels in ein Tupel von ganzzahligen Werten.

Signatur

tuple_int( : : T : Int)

Herror tuple_int(double T, Hlong* Int)

Herror T_tuple_int(const Htuple T, Htuple* Int)

void TupleInt(const HTuple& T, HTuple* Int)

HTuple HTuple::TupleInt() const

static void HOperatorSet.TupleInt(HTuple t, out HTuple intVal)

HTuple HTuple.TupleInt()

def tuple_int(t: MaybeSequence[Union[float, int]]) -> Sequence[int]

def tuple_int_s(t: MaybeSequence[Union[float, int]]) -> int

Beschreibung

tuple_inttuple_intTupleIntTupleIntTupleInttuple_int konvertiert das Eingabetupel TTTTtt in ein Tupel von von ganzzahligen Werten. Dabei wird TTTTtt abgeschnitten. Die Konversion von Strings ist nicht erlaubt.

Sonderfall: Leeres Eingabetupel

Falls das Eingabetupel leer ist, gibt der Operator ein leeres Tupel zurück.

HDevelop Inline-Operation

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

Int := int(T)

Ausführungsinformationen

Parameter

TTTTtt (input_control)  number(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Eingabetupel.

IntIntIntIntintValint (output_control)  number(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Ergebnis der Konversion in ganze Zahlen.

Alternativen

tuple_roundtuple_roundTupleRoundTupleRoundTupleRoundtuple_round

Modul

Foundation